Rich John Ever since John won the lottery, he’s got so many stacks of cash that he can’t count them by hand anymore! He is going to need some help with the counting of his huge wads of cash. Since he is rich now, he figured that he could just pay Cody to make a money counting program for him. Input the number of bills John has then input the values of each bill. Print the sum of all the bills. Input 1. Number of bills 2. Amount of each of the bills Output The first line will contain a message prompt to input the number of bills. The succeeding lines will prompt for the amount of the bills. The last line will contain the sum of the bills. Enter·the·number·of·bills:·4 Bill·#1:·100 Bill·#2:·200 Bill·#3:·500 Bill·#4:·1000 100·+·200·+·500·+·1000·=·1800
PleasehelpASAP - 30 mins C
4. Rich John
Ever since John won the lottery, he’s got so many stacks of cash that he can’t count them by hand anymore! He is going to need some help with the counting of his huge wads of cash. Since he is rich now, he figured that he could just pay Cody to make a money counting program for him. Input the number of bills John has then input the values of each bill. Print the sum of all the bills.
Input
1. Number of bills
2. Amount of each of the bills
Output
The first line will contain a message prompt to input the number of bills.
The succeeding lines will prompt for the amount of the bills.
The last line will contain the sum of the bills.
Enter·the·number·of·bills:·4
Bill·#1:·100
Bill·#2:·200
Bill·#3:·500
Bill·#4:·1000
100·+·200·+·500·+·1000·=·1800
Step by step
Solved in 2 steps with 2 images