I have a couple problems I have to crank out, and I, not being the quickest writer of C++ am probaly not going to get them done in the next 2 hours. If someone can write C++ well write out these problems, state the e-mail address you want 3.00 per problem sent to and post it here. First submitted gets the cash, and answers to the same problem will not be valid for cash. This is good till 8:00pm pst Monday April 26th.
Thanks Much
Here are the descriptions:
1. Create a C++ program to display the ASCII character set from 32 to 255. Show the decimal value, the character equivalent and the hex and octal values. Your output should look similar to the following:
Dec Char Hex Oct
==============
32 20 40
33 ! 21 41
34 " 22 42
35 # 23 43
36 $ 24 44
and so on till 55
2. Write a C++ program that forces an overflow condition of a short integer variable on your computer. Keep in mind that some compilers and computer combinations use 1-byte short integers while others use 2-byte integers. You need to determine the size of a short integer on your machine. Document your code with plenty of C++ comments.
3. Write a C++ program that prints a pattern similar to the following pattern. Start at 1 and end with 26, however. The middle row os asterisks should be 26 document your code with comments.
*
**
***
****
*****
******
*******
********
*******
******
*****
****
***
**
*
4. Write a C++ program that loops and prints a table of simple interest calculations. Prompt the user for the principal (p), interest rate (r) and time (t) in years. Use a loop from 1 to years and calculate interest rate compounded annually for the years selected. Hint: i=prt is the simple interest formula, where time(t) is held to 1 year foe each iteration. Hence, the output should look very close to the following: (Do not worry about commas and dollar signs in the output)
Enter original deposit amount: 50000
Enter annual interest rate (10% as 10): 7
Enter years to save this deposit amount: 18
Year Rate Amount Interest New Amt
================================
1 0.07 50000.00 3500.00 53500.00
2 0.07 53500.00 3745.00 57245.00
3 0.07 57245.00 4007.15 61252.15
4 0.07 61252.15 4287.65 65539.80
5 0.07 65539.80 4587.79 70127.59
6 0.07 70127.59 4908.93 75036.52
7
8
9
10
11
12
13
14
15
16
17
18
Interest gained over 18 years is 118996.61
Mean interest per year is 6610.92
Show the total interest paid for the life of the loan and show the average interest gained per year.
5. Write a C++ program that computes the factorial of a number that is input from the keyboard. A factorial is the product of all the numbers up to the number entered. For example, 6-factorial is 720 because 6*5*4*3*2*1 is 720. Six-factorial is written "6!" Prompt the user for the numeric input. Keep prompting for values until a zero value is entered. Document your code with plenty of comments.
