Submit the .cpp source code file on Ecampus.
Write a program that has the main menu listed below. It should be in a while loop that repeats until the user selects 6 to Exit.
Program 1 Example Output
1 = Convert Fahrenheit to Celsius
2 = Convert Miles to Kilometers
3 = Convert Pounds to Kilograms
4 = Calculate value of coins
5 = Print for loop patterns
6 = Exit
Enter Your Choice: 2
Enter the number of Miles: 2
This is 3.3333 Kilometers
<program loops and goes back to main menu>
1 = Convert Fahrenheit to Celsius
2 = Convert Miles to Kilometers
3 = Convert Pounds to Kilograms
4 = Calculate value of coins
5 = Print for loop patterns
6 = Exit
Calculating value of coins – Ask the user how many pennies, nickels, dimes, and quarters they have. Output the dollar value of the coins.
Also, output various comments about the dollar value of the coins. For example:
Dollar Value |
Output |
< $0.50 |
You need to search for some pennies. |
>= $0.50 and < $2.00 |
You can barely buy a soda. |
>= $2.00 and < $5.00 |
You can eat at McDonald’sl |
>= $5 |
All those coins must be heavy. |
Example Output
How many pennies do you have? 3
How many nickels do you have? 2
How many dimes do you have? 1
How many quarters do you have? 2
The dollar value is $0.73
You can barely buy a soda.
Optional: The user would like to exchange their coins so that they will have the same amount of money, but with the fewest possible coins. Tell the user the fewest coins that will add up to the same dollar amount.
Print for loop patterns – Use for loops to print the following patterns:
Pattern 1 – use a single for loop to print every 5th number from 105 – 500. There should be 20 numbers per line.
Pattern 2 – use a nested for loop to print asterisks with 1 on the first line, 2 on the second line, … 10 on the tenth line.
Pattern 3 – use a nested for loop to print dollar signs with 10 on the first line, 9 on the second line, … 1 on the last line
Example Output
~~ Pattern 1 ~~
105 110 115 120 125 130 135 140 145 150 155 160 165 170 175 180 185 190 195 200
205 210 215 220 225 230 235 240 245 250 255 260 265 270 275 280 285 290 295 300
305 310 315 320 325 330 335 340 345 350 355 360 365 370 375 380 385 390 395 400
405 410 415 420 425 430 435 440 445 450 455 460 465 470 475 480 485 490 495 500
~~ Pattern 2 ~~
*
* *
* * *
* * * *
* * * * *
* * * * * *
* * * * * * *
* * * * * * * *
* * * * * * * * *
* * * * * * * * * *
~~ Pattern 3 ~~
$ $ $ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $
$ $ $ $ $ $ $
$ $ $ $ $ $
$ $ $ $ $
$ $ $ $
$ $ $
$ $
$
Essay Writing Service Features
Our Experience
No matter how complex your assignment is, we can find the right professional for your specific task. Nursing Paper Writing Service | Top-notch Services | High Originality is an essay writing company that hires only the smartest minds to help you with your projects. Our expertise allows us to provide students with high-quality academic writing, editing & proofreading services.Free Features
Free revision policy
$10Free bibliography & reference
$8Free title page
$8Free formatting
$8How Our Essay Writing Service Works
First, you will need to complete an order form. It's not difficult but, in case there is anything you find not to be clear, you may always call us so that we can guide you through it. On the order form, you will need to include some basic information concerning your order: subject, topic, number of pages, etc. We also encourage our clients to upload any relevant information or sources that will help.
Complete the order formOnce we have all the information and instructions that we need, we select the most suitable writer for your assignment. While everything seems to be clear, the writer, who has complete knowledge of the subject, may need clarification from you. It is at that point that you would receive a call or email from us.
Writer’s assignmentAs soon as the writer has finished, it will be delivered both to the website and to your email address so that you will not miss it. If your deadline is close at hand, we will place a call to you to make sure that you receive the paper on time.
Completing the order and download