OO Programming and Data Structures | CS 241

01 Prepare : Checkpoint B

Objective

Demonstrate input output and variable use in Python.

Overview

Write a Python 3 program that asks the user how old they are, displays that information back and then informs them how old they will be on their next birthday.

Sample Output


Please enter your name: Emily
Please enter your age: 23

Hello Emily, you are 23 years old.
On your next birthday, you will be 24.

Automatic Grading Script (TestBed)

This assignment is pass/fail. In order to receive credit, it must pass the auto-grading test script (TestBed). You can run this script as many times as you like while you are working on the assignment. The same test script will be run by the instructor for credit, so you should not be surprised at the result.

To run the test script, log into the CS Department Linux system and run the testBed command, providing the class and test script to run as well as the Python program to use, as follows:


testBed class/assignment yourFile.py

Thus, for this checkpoint, if my file were named "check01b.py", I would type the following:


testBed cs241/check01b check01b.py

Submission

Submit your program by logging into the CS Department Linux system, and running the submit command with your filename. Example (assuming my file is named "check01b.py":


submit check01b.py

You should then select the appropriate course (CS 241), instructor, and assignment (check01b) from the list.