FOR PYTHON: Write a python program for a car salesperson who works a five day week. The...

90.2K

Verified Solution

Question

Programming

FOR PYTHON:

Write a python program for a car salesperson who works a fiveday week. The program should prompt for how many cars were sold oneach day and then prompt for the selling price of each car (if any)on that day. After the data for all five days have been entered,the program should report the total number of cars sold and thetotal sales for the period. See example output. NOTE: duplicate thecurrency format shown for the total sales,

Example Output How many cars were sold on day 1? 1

Selling price of car 1? 30000

How many cars were sold on day 2? 2

Selling price of car 1? 35000

Selling price of car 2? 45000

How many cars were sold on day 3? 0

How many cars were sold on day 4? 1

Selling price of car 1? 30000

How many cars were sold on day 5? 0

You sold 4 cars for total sales of $140,000.00

Answer & Explanation Solved by verified expert
3.6 Ratings (566 Votes)
totalCars 0 totalSales 0 for i in range5 n intinputHow many cars were sold on day stri1 totalCars totalCars n for j in rangen    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students