Question: Using the linked Zybooks coding environment, create a Python program that does the following: Using an input statement, request the user enter an integer value.

Using the linked Zybooks coding environment, create a Python program that does the following:
Using an input statement, request the user enter an integer value.
the input statement should contain a message to the user (user prompt) indicating that the user should
enter an integer to represent the number of CSC 221 books purchased.
Using an input statement, request the user enter a float value.
the input statement should contain a message (user prompt) to the user indicating the cost of the CSC 221 book.
Multiply the values and store in a variable. This will represent the cost of the purchase.
Create and set a variable =.053(representing a tax of 5.3%)
Multiply the purchase cost by the tax value and store in a variable
Add the calculated tax and the purchase and store in a variable to calculate the total cost
Output (print) a. the values the user entered, b. the total tax, and c. the total cost of the purchase.
Output the values (4 total) on a single (one) line (not on separate lines).
Output a meaningful/descriptive message for all values.
Ensure the tax and total cost include 2 decimal places.
To practice importing a module, use the math module to:
calculate and print the ceil() value of the total cost (least integer number greater than or equal to the value).
calculate and print the floor() value of the total cost (largest nearest integer of the value).
To view the module ID/memory location:
Using one print statement, output the identity ( id()) of each of the variables (8 total)
(numbers user entered, tax rate, total tax, total cost before tax, total cost after tax, ceil, and floor)
Include a space between each of the output values and end with a newline
Each ID must print on its own (separate) line with a meaningful/descriptive message
Include the necessary program information at the beginning (top) of the program file
a top block of comments with (1) Your name (2) the completion date of the program (3) a short description of the program
inline comments documenting the lines of code - codes must be fully and well-commented
Review and ensure the program meets the grading rubric requirements below (scroll down).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!