Computers and Technology

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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:00, zay179
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
image
Computers and Technology, 23.06.2019 05:20, jaylenmiller437
Which operating system is a version of linux?
Answers: 1
image
Computers and Technology, 23.06.2019 09:30, cdavis379
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a. if the manual switch s is on, then the light l is on. b. besides the manual switch, there is a motion detector, m1, which activatesthis light. c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d. the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
image
Computers and Technology, 23.06.2019 13:00, dimondqueen511
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
Do you know the correct answer?
Ii .using c++, write a program that prompts the user to enter some number of pennies(i-cent coins),...

Questions in other subjects: