Reference no: EM13163435
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.
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.
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
|