Be on schedule.Score better.

support@savemydegree.com

EN

Our Services

Get 15% Discount on your First Order

PLEASE REVIEW THE INFORMATION BELOW Submit the .cpp source code file on Ecampus. Write a program that has the main menu listed below.  It should be

PLEASE REVIEW THE INFORMATION BELOW 

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 ~~
$ $ $ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $ $
$ $ $ $ $ $ $ $
$ $ $ $ $ $ $
$ $ $ $ $ $
$ $ $ $ $
$ $ $ $
$ $ $
$ $
$
 

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Operational Excellence Week 9 AssignmentInformation

Operational Excellence Week 9 Assignment Information Systems for Business and Beyond Questions: · Chapter 9 – study questions 1-10, Exercise 3 &4.  (Chapter 6 | 219) 01. Describe the role of a systems analyst. 02. What are some of the different roles for a computer engineer? 03. What are the duties

Question attached.    Week 1 Data Visualization Article Summary Read the “

Question attached.    Week 1 Data Visualization Article Summary Read the “ Data Visualization: A Comprehensive Overview ” research article and write a one-page summary about it. Focus on how data visualization is defined, the strengths and weaknesses of the human visual system, and the analytical process. The summary must

Operational Excellence Week 8 Midterm

Operational Excellence Week 8 Midterm Midterm Exam Please a topic from the below list and create a one-page essay answering the question noted below.     · Define the IT organizational structure and how the IT organizational structure impacts culture and change management practices.  Additionally, how does the organizational structure impact

Instructions are posted.CMIS 320 Project 2IntroductionThis assignment allows students to demonstrate their skills in designing relational data

Instructions are posted. CMIS 320 Project 2 Introduction This assignment allows students to demonstrate their skills in designing relational databases to satisfy specific business rules and requirements. The deliverables for this assignment include an Entity Relationship Diagram (ERD) and the associated detailed documentation describing the database design and structure. In

2OutlineStudent’s Name Institutional Affiliation Course Name Instructor’s Name Date

2 Outline Student’s Name Institutional Affiliation Course Name Instructor’s Name Date Outline I. Introduction A. Definition of digital signatures B. Importance and applications of digital signatures C. Thesis statement and overview of the paper II. Detailed Description of Digital Signatures A. Cryptographic principles behind digital signatures 1. Public key cryptography

2OutlineStudent’s Name Institutional Affiliation Course Name Instructor’s Name Date

2 Outline Student’s Name Institutional Affiliation Course Name Instructor’s Name Date Outline I. Introduction A. Definition of digital signatures B. Importance and applications of digital signatures C. Thesis statement and overview of the paper II. Detailed Description of Digital Signatures A. Cryptographic principles behind digital signatures 1. Public key cryptography