Question: Start your program with a sample run as comments. What will the user see when they run your program? Use real data in your sample

 
Start your program with a sample run as comments. What will the user see when they run your program? Use real data in your sample run to test your program when it is finished. Open this Replit to see an example of a sample run.
 
This IS a sample run, user input is shown in blue:
 
Enter your name: Marcus
 
 Enter your age: 22 
 
 Hello Marcus! You were born in 2000 
 
This is NOT a sample run, do not use placeholders for real input data:
 
 Enter your name: [[user enters name]] 
 
 Enter your age: [[user enters age]] 
 
 Hello [[name entered]!]! You were born in [[year]!]! 
 
 Are all variables declared at the top of your program and use camelCase or snake__case and start with a lowercase letter? 
 
Did you initialize every variable to a default value?
 
 Did you create constants instead of using magic numbers in your code? 
 
 Are your constants all UPPER__CASE letters?  
 
For example:
 
 TAX__RATE =.0775 
 cost =0.0
 
 final__cost =0.0
 
 cost == float((input((Enter item cost $ )))) 
 
 final__cost == cost ++ cost ** TAX__RATE 
 
 If you are using money, did you format all money output to 2decimal places? 
 
Does your program prompt for at least two related inputs and produce an output?
 

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Improved Program with Sample Run and Commentary Python Declare and initialize variables name age 0 c... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!