Write a program that obtains integer numbers from user

Assignment Help Python Programming
Reference no: EM13302726

#1 - Pseudo Code

The project will emphasize standard approaches that verify you have successfully mastered the concepts of structured design.

Example:

Write a program that obtains two integer numbers from the user. 

It will print out the sum of those numbers.

Pseudo code:

Prompt the user to enter the first integer
Prompt the user to enter a second integer
Compute the sum of the two user inputs
Display an output prompt that explains the answer as the sum
Display the result

In this project, create the pseudo code from the following request.  

  1. The program must have some sort of menu that allows users to make selections to do a particular calculation.
  2. It must provide five menu items that allow the user to make a calculation. Each of the 5 menu items should perform different calculations. There should be an additional menu item for user to exit the program. So, total of 6 menu item.
  3. Once the user selects a menu item, program should perform calculation, display the result to the user, and return to the main menu. User should be presented with main menu until they choose option to exit the program.

Reference no: EM13302726

Questions Cloud

State fault tolerance approaches that systems managers use : Windows server software works seamlessly with most hardware vendors that offer fault tolerant systems. Discuss fault tolerance approaches that systems managers use to assure continuity of operations.
Determine how far did the train travel during the time : A train moving at 100 km/hr decreases its speed to 80 km/hr in 3.5 seconds. How far, in meters, did the train travel during this time
What is its total corporate value : The company owns marketable securities of $100 million. It is financed with $200 million of debt, $50 million of preferred stock, and $210 million of book equity.
What is your opinion of the criteria used : Based on your understanding of how AES was chosen, what is your opinion of the criteria used?
Write a program that obtains integer numbers from user : Emphasize standard approaches that verify you have successfully mastered the concepts of structured design - selects a menu item, program should perform calculation, display the result to the user, and return to the main menu.
What is the percent decrease in the cross-sectional area : a circular aluminum tube of L=600 mm is loaded in compression by forces P. The outside and inside diameters are d2=75 mm and d1=63mm, respectively. A strain Gage is placed on the outside of the tube to measure normal strains in the longitudinal di..
How much is collected from accounts receivable in november : Wiggles Right forecasted sales of $5,000 in October, $4,000 in November and $4,000 in December. All sales are on credit. 40% is collected the month of sale and the remainder the following month. How much is collected from accounts receivable in No..
Calculate its increase in volume : The active element of a certain laser is an ordinary glass rod 19.5 cm long and 1.37 cm in diameter. Calculate its increase in volume
Mini case: cisco systems : Mini Case: Cisco Systems

Reviews

Write a Review

Python Programming Questions & Answers

  Assume that the variables gpa , deanslist and studentname

Assume that the variables gpa , deansList and studentName , have been initialized. Write a statement that adds 1 to deansList and prints studentName to standard out if gpa exceeds 3.5.

  Input a temperature as a floating point

Your program should input a temperature as a floating point number with an appended unit letter. It should then print the temperature in all four of the units above

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Data file is a comma separated

The data file is a comma separated text values stored in a file with '.CSV' extension. The file has five columns corresponding to employee data fields listed above.

  Program that allows the user to enter the type of coin

Create a program that allows the user to enter the type of coin to be evaluated and the number of coins. The program should calculate the total weight of the coins and the height of the coins when stacked. Name the program coins.py. Use the table bel..

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Implement functions for insertion sort

Implement functions for Insertion sort and bubble sort in python programming language and a function that calculates the function execution time.

  Interaction between the customer and the machine

In Python:Simulate a cash register or ATM including the interaction between the customer and the machine (i.e. assume that you are automating the responses)

  Evaluate a user''s expression

Write a function that will evaluate a user's expression. It should call the getExpression function that you previously wrote to get the expression to evaluate from the user. You should evaluate the expression step-by-step.

  Assume an n × n matrix a is given

Assume an n × n matrix A is given, containing only 1's and 0's, such that, in each row, all 1's come before all 0's. Give an O(n log n) algorithm to count all 1's in A.

  When we sort a list of items, we need a basis

When we sort a list of items, we need a basis on which to compare the items to see whether one is bigger than another. If it's a list of numbers, Python just compares the numeric values; if it's a list of strings, Python compares the strings alpha..

  Programmer does not have to use the def statement

Unlike Z+-, the programmer does not have to use the DEF statement to create a variable. Instead, the programmer can simply use the variable. The first use of the variable creates it and initializes it to 0.

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