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, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The salespeople at hyperactive media sales all use laptop computers so they can take data with them on the road. you are a salesperson for superduper lightspeed computers talking to hyperactive media sales about upgrading the laptops to windows 10. explain how network location awareness in windows 10 would make the laptops more secure.
Answers: 3
question
Computers and Technology, 23.06.2019 02:50
There’s only one game mode that stars with the letter ‘e’ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 25.06.2019 07:10
When you “listen” to evaluate an online message, which question should you ask?
Answers: 1
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, 11.09.2020 21:01
question
Biology, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
English, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
English, 11.09.2020 21:01
question
History, 11.09.2020 21:01
question
Geography, 11.09.2020 21:01
question
Social Studies, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
question
English, 11.09.2020 21:01
question
Mathematics, 11.09.2020 21:01
Questions on the website: 13722359