Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment: Create a Python program that performs the following: > Define your first name, last name, and age as named constants. Output to the screen

image text in transcribed
Assignment: Create a Python program that performs the following: > Define your first name, last name, and age as named constants. Output to the screen one line that concatenates your name and age into a complete sentence. Collect 3 data points (i.e., first name, last name, and age) from the program's user. Be sure to include appropriate prompts for the end user to know what is being requested of them. o Output to the screen one line that concatenates the user's name into a greeting as a complete sentence. >Concatenate a second complete sentence that calculates how much older the user is compared to the author's age. Use a separate print0 command but display it on the same line as the previous sentence. This will calculate a positive number of the user is younger than the author. This will calculate a negative number if the user is older than the author. o o Output to the screen one line that calculates the user's age as a percentage of the author's age. Use the percentage formatting functionality to express this percentage to two significant digits. o This will calculate a numbers 100% if the user is younger than the author. This will calculate a number > 100% if the user is older than the author. Your output should appear similar to the examples shown below. Attach your notebook to the assignment link in Bb before the due deadline

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions

Question

What are the attributes of a high-quality employee?

Answered: 1 week ago

Question

Develop a questionnaire and cover letter.

Answered: 1 week ago