subject

Ii .using c++, write a program that prompts the user to enter some number of pennies(i-cent coins), nickels (5-cent coins), dimes (lo-cent coins), quarters (25-cent coins), half dollars (50-cem coins), and one-dauar coins (ioo-centcoins). query the user separately for the number of each size coin, e. g.,"how many pennies do you have? " then your program should printout something like this: you have 23 pennies. you have 17 nickels. you have 14 dimes. you have 7 quarters. you have 3 half dollars. the value of all of your coins is 573 cents. you luay have to lise your imagination to get the numbers to add upright-justified, but il-y; it can be done. make some improvements: if onlyone of a coin is reportcd, make the output grammatically correct, e. g.," 14 dimes" and "1 dime" (not "1 dimes"). also, repon the sum in dollarsand cenls, i. e., $5.73 instead of 573 cents. the question: exercise 11 on page 86, but with the followingmodifications: instead of using u. s. currency, write your program for britishcoins. note that british coins come in different denominations from u. s.coins (although some are commemorative denominations not in everyday use): 1-penny2-penny (or "tuppence")5-penny10-penny20-penny2 5-penny50-penny1-pound2-pound5-poun dreport to the user the individual counts (as in the original problem) and thesum in pence (british english for "pennies"). a pound is 100 pence (sincedecimalization in 1971; before that a pound was 240 "old" pence). in addition, convert the final value to u. s. dollars using a recent exchange rate (do notworry about rounding the result, for now).your program's output should look something like: you have 3 1-penny coins. you have 8 2-penny value of all of your coins is 19 british pence. in u. s. dollars, that is $.3092.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:00
An excel which cell contains =b2 is copied to row below, the same column. what will be the new cell's content
Answers: 2
question
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Which best describes the role or restriction enzymes in the analysis of edna a. to break dna into fragments that vary in size so they can be sorted and analyzed b. to amplify small amounts of dna and generate large amounts of dna for analysis c. to purify samples of dna obtained from the environment so they can be analyzed d. to sort different sizes of dna fragments into a banding pattern that can be analyzed
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
If you're using an existing powerpoint presentation that will receive new slides based on a word outline, select the a. slide that will appear after the new slides. b. first slide in the presentation. c. slide that will appear before the new slides. d. last slide in the presentation.
Answers: 2
You know the right answer?
Ii .using c++, write a program that prompts the user to enter some number of pennies(i-cent coins),...
Questions
question
Mathematics, 03.05.2021 14:00
question
Mathematics, 03.05.2021 14:00
question
Mathematics, 03.05.2021 14:00
question
Chemistry, 03.05.2021 14:00
question
English, 03.05.2021 14:00
question
Mathematics, 03.05.2021 14:00
question
Mathematics, 03.05.2021 14:00
Questions on the website: 13722363