Question: Write a Python program that does the following 1. Prints the message Sales Calculating Program 2. Prints the prompt Enter number of Items and allows

Write a Python program that does the following

1. Prints the message "Sales Calculating Program"

2. Prints the prompt "Enter number of Items" and allows the user to enter a number

3. Save this number in a variable and make sure it is an integer.

4. Prints the prompt "Enter price per item" and allows the user to enter a decimal number

5. Save this decimal number in a variable and make sure it is a floating point value

6. Multiply the number of items by the price per item and save the results in a variable.

7. Print the message "Y our Total is XXX" where XXX is the value of your calculation.

 


Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Below is a simple Python program that follows the specified steps Step 1 Print the message printSale... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!