Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

Improved Program with Sample Run and Commentary Python Declare and initialize variables name age 0 c... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Accounting Information Systems

Authors: George H. Bodnar, William S. Hopwood

11th Edition

0132871939, 978-0132871938

More Books

Students also viewed these Programming questions