Create console-based program that presents the user

Assignment Help Programming Languages
Reference no: EM133398488

Your header comment is to include the following information (P4):

A title stating "Your Name Assignment 2"

Name of Project:

Purpose:

Revision History:

Ensure you are using proper programming conventions. For example, proper variable naming, indenting, grouping, etc. Deductions will be made for each style mistake.
When complete, submit a single compressed (.zip format) file containing the entire project folder for both programs, and upload the zip file to the "Assignment 3" dropbox in the class portal.

PROGRAM REQUIREMENTS

Create console-based program that presents the user with a menu of three options. Each menu option will perform a series of calculations, as noted in the instructions below.

Program Logic

Present your user with a menu of 3 options using a do loop.

Any invalid option entered by the user should re-display the menu.
Encapsulate the logic of Option 1 and Option 2 within their own method.
Proper error handling and appropriate error messages should be displayed.
Option 1 - Display a list of 10 sequential numbers that have their values manipulated as noted below, starting from a number that the user specifies.

Start by asking the user for a starting number. Any string entry by the user, in place of the expected numeric value should not crash the program.
Use a for loop to increment through the numbers, beginning with and including the starting number.
For each number multiply the even ones by 3 and multiply the odd numbers by 4.
Display the result of each calculation.
Option 2 - This option should be created using a while loop. The option should present the user with an arithmetic problem (e.g., What is 3 + 8?) and asks for the answer from the user.

The integer numbers for the arithmetic problem should be generated randomly.
Keep presenting the question to the user until they get it right. Then give them a success message.
After the get the correct answer ask the user if they would like another question. Give them another question if the user enters "Yes". If the user enters "No" return to the original menu.

Reference no: EM133398488

Questions Cloud

What are your priorities for this area as the new nurse : What are your priorities for this area as the new nurse tion your team for growth. What communication strategies would you use wit your team?
Produce a design document for modelling and designing : Produce a design document for modelling and designing a computer program based on a given problem statement using a range of UML techniques and Pseudocode
How can a nurse apply ethical principles in decision making : How can a nurse apply ethical principles in decision making? How can a nurse practice principles of accountability and ethical conduct in nursing practice?
What type of patients would be receiving these fluids : What type of patients would be receiving these fluids (ie. PMH,current clinical condition, treatments) and what outcomes do you expect to see?
Create console-based program that presents the user : Create console-based program that presents the user with a menu of three options. Each menu option will perform a series of calculations, as noted
What fallacies are in play here : In the first video, Logan ignores the guidelines for expressing emotions and succumbs to irrational thinking, or fallacies, that lead to debilitative feelings.
Derive and solve the system of state transition equations : CSCE 5760 University of North Texas The failure rate of the memory is m. Derive and solve the system of state transition equations representing this system
What cpt code describes this service : The patient is status post total ethmoidectomy 2 days ago and now presents with headache and a clear nasal discharge when moving the head forward.
Assessing the major economic events influenced supply : Assessing how 2 of the following major economic events influenced supply, demand, and economic equilibrium in U.S. economic activity.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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