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 13:00
The documents a system at the end of the design phase, identifies any changes since the beginning of the project, and includes testing and verification of all system requirements and features. functional baseline operational baseline allocated baseline product baseline
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Font size, font style, and are all aspects of character formatting.
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
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, 16.11.2019 12:31
question
Geography, 16.11.2019 12:31
question
English, 16.11.2019 12:31
Questions on the website: 13722361