Start your program with a sample run as comments. What will the user see when they run
Fantastic news! We've Found the answer you've been seeking!
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 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?
Related Book For
Accounting Information Systems
ISBN: 9780132871938
11th Edition
Authors: George H. Bodnar, William S. Hopwood
Posted Date: