Project will be a simple, working program

Assignment Help Python Programming
Reference no: EM13163435

This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:

  1. Sequential, selection, and repetitive programming statements as well as,

  2. At least one function call.

    Pls design (based on the pseudo code in Project 1), create, debug and execute the program.

Pls use the Pseudo code below

Show Menu : ask to Enter choice

Enter num1

?if not a number

Ask to Re-enter until a number

?Enter num2

?if not inte

Ask to Re-enter until a number

?Compute the operation

Display Result

?If choice was not "Quit"

Start again from beginning

choice = 0
num1Check = "No"
num2Check = "No"

while choice != "6":
print ("Menu :")
print ("1. Addition")
print ("2. Subtraction")
print ("3. Multiplication")
print ("4. Division")
print ("5. Display both numbers.")
print ("6. Exit")
choice=input("Enter your choice : ")
  
if choice !="6":
num1 = input("Enter first number : ");
while num1Check!="Ok":
if (num1.isnumeric()):
num1Check="Ok"
num1=float(num1)
else:
num1 = input("ERROR !!! Enter a number : ");
  
num2 = input("Enter second number : ");
while num2Check != "Ok":
if (num2.isnumeric()):
num2Check = "Ok"
num2=float(num2)
else:
num2 = input("ERROR !!! Enter a number : ");

if choice == "1":
answer = num1+num2
print ("sum of two numbers is : ")
print (answer)
elif choice == "2":
answer = num1 - num2
print ("sum of two numbers is : ")
print (answer)
elif choice == "3":
answer = num1 * num2
print ("sum of two numbers is : ")
print (answer)
elif choice == "4":
answer = num1 / num2
print ("sum of two numbers is : ")
print (answer)
elif choice == "5":
print ("First number is ")
print (num1)
print ("Second number is "+num2)
print (num2)
elif choice == "6":

print ("Good Bye !")

The docmentation within the program should include:

     Name - L Gates

    Course - CMST 290

     Program Name

    Due Date - May 4, 2014

    Programming Language Used -

   List any requirements/steps to run the program:

< >

The program must be submitted as an executable file.

as Python(.py) file.

Reference no: EM13163435

Questions Cloud

Assume that section : Assume that section _1 seats are in front of the stage, and the price is expensive. say, each seat in the 1st three rows is $180.00, and each seat in the last two rows is 10% less;
Program that asks the user to enter the number of miles : Write a C - program that asks the user to enter the number of miles traveled and the number of gallons of gasoline consumed. It should then calculate and display the miles-per-gallon value. Confine your output to 1 decimal place.
Use heat of formation data to determine h : Use heat of formation data to determine H for the combustion of hydrogen sulfide according to the following reaction: 2 H2S(g) + 3 O2(g) ? 2 SO2(g) + 2 H2O(?) ?H = ? ?Hfo for compounds:
Calculate deltahrxn : Calculate DeltaHrxn for the following reaction: CH4(g) + 2Cl2 (g) --- CH2Cl2(g) + 2HCl(g) Use the following reactions and given delta H's
Project will be a simple, working program : This programming project will be a simple, working program, using Python language, which utilizes a good design process and includes:Sequential, selection, and repetitive programming statements as well as,At least one function call.
Implement a standard sorted linked list class : Write C++ Program:Implement a standard SORTED linked list class. Be sure to include constructor/copy constructor, destructor, and assignment operator overload.
Compute the zero-point energy of a harmonic : Calculate the zero-point energy of a harmonic oscillator consisting of a rigid CO molecule adsorbed to a metal surface by a bond of force
State what is the heat of vaporization of ethanol : The heat of fusion, ?Hfus, of ethanol (C2H5OH) is 4.9 kJ/mol. The heat of sublimation of ethanol, for the process C2H5OH(s) ? C2H5OH(g) , is 43.5 kJ/mol. What is the heat of vaporization of ethanol?
Computer program that inputs a degree : Write a computer program that inputs a degree of difficulty and seven judges' scores, and outputs the overall score for that dive. The program should ensure that all inputs are within the allowable data ranges

Reviews

Write a Review

Python Programming Questions & Answers

  Design a prgram using python

Design a prgram USING PYTHON that students can use to calculate what score they need on final exam to get a certan final grade for a course.

  Program to do the enciphering

Write a program to do the enciphering. It should prompt the user for a message, and print out both the entered message and its corresponding ciphertext.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Design a function that accepts an integer

Design a function that accepts an integer argument and returns the sum of all the integers from 1 up to the number passed as an argument. For example, if 50 is passed as an argument, the function will return the sum of 1, 2, 3, 4, . . . 50. Use recur..

  Cleint software so that it does not display

Rewrite the cleint software so that it does not display an echo of a message sent by the users. Maybe it means that each time a user tries to send a private message that same message is also sent back to them? summary: stop that from happening?

  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.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Most popular name would be the one with the biggest number

the program will ask you to insert the year that the user is interested in, then ask the gender that the user is interested in, and print out the most popular names corresponding to the year and gender. FYI, the number on the right represents how man..

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