Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This assignment needs to be done using Python language. Please help me with 1-6 Write a Python program that will do the following: 1. Using

This assignment needs to be done using Python language. Please help me with 1-6

image text in transcribed

image text in transcribed

Write a Python program that will do the following: 1. Using single statement asks the car driver first and last name, driving test number, and her test center name. 2. Displays the first name in one line then last name in next line, the test number on another, and the center name on the next one. The driver name, test number, and center name should display on the same column as shown on the sample run, using the format (%) operator 3. Asks the user to enter the full name of a sales associate. 4. Asks the user to enter four amounts of sales: sales 1, sales2, sales3 and sales4 using a single statement. 4 Calculates and displays the sales and the total sale. The total sale should be the sum of sales1, sales2, sales3 and sales4. The results should be aligned using the format (%) operator. - Make sure the sum statement spans two lines of code suing), meaning to break the statement and make it two lines. 5 Enter a comment in the beginning of your program that spans two lines of code to explain what the program does. The format of the output should be similar to the sample run. Sample run Enter your first name, last name, driving test number and test center name Raed Karim 0123456 Barrie Driver First Name Driver Last Name Driving Test Number Test Center Name Raed Karim 0123456 Barrie Enter the Sales Associate's full name Daniel Robert Enter the sales for sales1, sales2, sales3 and sales4 for the sales associate 500 670 830 910 Sales Associate's Full Name Daniel Robert sales 1 500 sales2 670 sales 3 830 sales4 910 Total sales 2910 Process finished with exit code 0

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

Step: 3

blur-text-image

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago