Write a program that will take in a unsigned short integer


Computer Science: C++ Assognment

1) Write a program that will take in a unsigned short integer and then swap the contents of the upper eight bits with the lower eight bits. After it has done this, it will then invert all of the bits of the number and display the result...

2) You are considering buying a new car, and in order to figure out if your budget can afford the monthly payments, you want to write a program that will print out a table of payments. In order to do this, you will need the following information:

1. The total value of the loan
2. The lowest and highest interest rate you wish to pay.
3. The step size between interest rates.

Car loans are normally one, two, three, four, five, or six years in length. Given this information, your program will create a table (that is nicely formatted!) that will display the monthly payment for each duration of the loan and interest rate.

Example:
4 5 6 7
_____________________
12| xxx
24| xxx
36|
48|
60|
72|

As with all programs written in class, the user must be prompted if they wish to to the task again, and all error checking must be performed.

You must submit, on paper and to Canvas, a copy of your source code as well as a demonstration (of all functionality), via a screen shot or other wise, of your program executing.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that will take in a unsigned short integer
Reference No:- TGS02273057

Now Priced at $35 (50% Discount)

Recommended (95%)

Rated (4.7/5)