Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program that has all three of the basic instruction types: input processing output Design a program that will prompt for personal information and

Create a program that has all three of the basic instruction types:

input

processing

output

Design a program that will prompt for personal information and then produce a single integer (whole number) that "predicts" your age and shoe size.

This program should work for anyone. That is, don't hard-code the input so that it only works with your personal information!

Ask the user for their shoe size and the year they were born. The first step of the processing is to multiply the shoe size by five. Step two is to add 50 to that number, and then you take that total and multiply it by 20. Next, you add 1,023 to that total and then subtract the year the user was born.

The single number you output as the answer should have the user's age at the end (as long as they are not 100 or older) and the shoe size as the first one or two digits. It may be off by one depending on exactly when the user's birthday is.

Use diagrams.net or Visio to first create a flowchart.

Save your flowchart as a PDF. (Save as or Export as PDF)

Implement your design in Python (name your file shoes.py)

Use the homework.py template (in the Reference module) as a style guide.

An example run (your program must produce the same output given this input):

Enter your shoe size: 10 Enter the year you were born: 2000 Shoe Size and Age: 1023

Does it give you the right answer? Try it with others (e.g., friends and family). Python please

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

Modern Database Management

Authors: Heikki Topi, Jeffrey A Hoffer, Ramesh Venkataraman

13th Edition

0134773659, 978-0134773650

More Books

Students also viewed these Databases questions