Hey everyone,
I have just recently started programming, and I never gotten deep into C++. I bought a book with some extra practice problems in the back, yet they don't seem to have any answers. If someone could give me the code for these 3 problems, I would GREATLY appreciate it. Thanks!
Write a program that will generate a random number larger than 10,000 and then output the digits as words. For example, 345678’s output would be:
The Value is: 345678
Three Four Five Six Seven Eight
Write a program that creates a scrolling message display with characters entering from the right. For example, the message: Vote Yes!’s output would be:
Vote Yes!
ote Yes! V
te Yes! Vo (and so on)
A fast food restaurant charges $3.50 for a burger, $1.50 for fries, $1.75 for a drink or a combo meal for which includes all three items for $6.25.
Create a program that allows the cashier to enter their name and calculates the bill. They should be asked if they are purchasing a combo or individuals item. They should be asked how many combo meals and/or individual items should be purchased
Once everything is entered, the program should write out a “receipt” in which the user (cashier) should enter the money he was given. Once that is done, the program should calculate the change that needs to be given.
Jorz, I graduated college years ago! However, I have taken interest to programming, and to my misfortune, this book only has even number answers in the back.
Hey Mike,
Yes this is in the array section of my book, most of the problems I have been doing rely on if thens, do whiles, for nexts, basic functions, counters, and other simple stuff