Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Spyder (python 3.9) anaconda 3 app must store calculations in variables program should print a blank line after gathering thr info from the user
Using Spyder (python 3.9) anaconda 3 app
Product Summary A local store wants to identify which face mask have the highest profit margin and are the most popular. They have hired you to update some of their systems. Your first task is to create an application to record the sales and calculate profit for individual masks sold. Write a program that accepts information from the user (a store clerk), calculates the total selling price, cost, and profit, and displays a summary of the item sold. Information entered by the user (store clerk) includes: The product's name The product's price The product's cost The quantity of the product sold The program then outputs the following summary information about the face mask: - Name of the product - Total revenue generated by the product - Total cost of the product - Quantity of product sold - Total profit (in dollars) generated by the product - Percentage profit generated by the product (percent profit = total profit/total revenue) Other program details: - Your program must contain a program header (see class slides for specifics) - Your program must have good, relevant variable names - Your program should be commented throughout - Your program should prompt the user for all information before displaying the product summary. - For now, you can assume that the user will enter valid numbers for price, cost and quantity. (This will change on subsequent homeworks.) must store calculations in variables
program should print a blank line after gathering thr info from the user (before displaying the summary info)
percentages should have 0 decimal places and followed by a percent
printed dollar values should be proceeded by a $ and contain 2 decimals
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started