Each task should be implemented as Console App (.NET Framework). Your solution and project names should be short (do not include your name or class).

Task A

Page 97, Exercise 13, amended to allow usage of $2 bills. Remember to write the program in the way that would be easy to modify if the currency lineup changes, for example $2 bills are out of circulation or $50 bills become so common that they are allowed to be used. This is accomplished by declaring the denominations as constants.

An example of the output (input shown in bold):

Enter the amount: 73
$20 notes: 3
$10 notes: 1
$5 notes: 0
$2 notes: 1
$1 notes: 1

Page 97, Exercise 13:

Write a program named MakeChange that calculates and displays the conversion of an entered number of dollars into currency denominations - twenties, tens, fives, and ones. For example, $113 is 5 twenties, 1 ten, 0 fives, and 3 ones.

Task B

Page 98, Exercise 15 modified as follows:

  • Convert input presented as degress Kelvin (guaranteed to be positive) to degrees Fahrenheit.
  • Change the program name and accordingly.
  • Find the K -> F conversion formula on the Web.
  • Display the entire inputted number

Attention: Check that not just whole numbers are accepted as temp values [K] and are converted correctly.

Page 98, Exercise 15:

Write a program named FahrenheitToCelsius that accepts a temperature in Fahrenheit from a user and converts it to Celsius by subtracting 32 from the Fahrenheit value and multiplying the result by 5/9. Display both values to one decimal place.

Task C

Page 98, Exercise 16, modified as follows:

  • Implement the problem for the first ten months only.
  • Remember that an enum-based solution is required.

Page 98, Exercise 16:

Create an enumeration named Month that holds values for the months of the year, starting with JANUARY equal to 1. Write a program named MonthNames that prompts the user for a month integer. Convert the user's entry to a Month value, and display it.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.