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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:20, shadowgirl1213
Write a select statement that returns product name, customer first name, customer last name, channel description, and amount sold for all the sales. make sure to returns sales even if there is no information on the customer, product, or channe
Answers: 2
image
Computers and Technology, 22.06.2019 15:30, 1232444553
Which of the following examples has four beats in each measure?
Answers: 2
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, marmar72
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
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 in other subjects:

Konu
Mathematics, 18.09.2020 07:01
Konu
Mathematics, 18.09.2020 07:01
Konu
Physics, 18.09.2020 07:01
Konu
Mathematics, 18.09.2020 07:01
Konu
English, 18.09.2020 07:01
Konu
History, 18.09.2020 07:01
Konu
Mathematics, 18.09.2020 07:01
Konu
Mathematics, 18.09.2020 07:01
Konu
Mathematics, 18.09.2020 08:01
Konu
Mathematics, 18.09.2020 08:01