Write a program that has the main menu

Assignment Help Computer Engineering
Reference no: EM133714022

Assignment

Write a program that has the main menu. It should be in a while loop that repeats until the user selects 6 to 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.

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 I: use a single for loop to print every 5th number from 105 - 500. There should be 20 numbers per line.

Pattern II: 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 III: 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.

Reference no: EM133714022

Questions Cloud

What public health problem : Problem statement clarifies what public health problem is, and what you propose to do to address it from research or intervention perspective
What verses in the old testament exemplify wisdom : What verses in the Old Testament exemplify wisdom? And why is this wisdom that is presented important to the teachings?
What are common challenge with which sentiment analysis deal : What are the common challenges with which sentiment analysis deals? What are the most popular application areas for sentiment analysis? Why?
Practicum courses : Summarizes the strengths you have gained throughout your last 3 practicum courses.
Write a program that has the main menu : Write a program that has the main menu. It should be in a while loop that repeats until the user selects 6 to Exit.
Christian worldview may influence ethical decision-making : Describe how personal values and a Christian worldview may influence ethical decision-making. Provide professional examples.
Irregular periods with pelvic pain : Irregular periods with pelvic pain for the past year. I have also noticed some facial hair and I have difficulty managing my weight
How is indrajit the most formidable opponama : How is Indrajit the most formidable opponama and his army must face? What does he do to them and what are his weapons and powers?
What emotion do you think the psalmist is expressing : What emotion do you think the Psalmist is expressing? How do the feelings of this Psalm connect with your experience?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd