Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using an input statement, request the user enter an integer value. A . the input statement should contain a message to the user ( user
Using an input statement, request the user enter an integer value.
A the input statement should contain a message to the user user prompt indicating that the user should
B enter an integer to represent the number of CSC books purchased.
Using an input statement, request the user enter a float value.
A the input statement should contain a message user prompt to the user indicating the cost of the CSC book.
Multiply the values and store in a variable. This will represent the cost of the purchase.
Create and set a variable representing a tax of
A Multiply the purchase cost by the tax value and store in a variable.
B 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.
A Output the values total on a single one line not on separate lines
B Output a meaningfuldescriptive message for all values.
C Ensure the tax and total cost include decimal places.
To practice importing a module, use the math module to:
A calculate and print the ceil value of the total cost least integer number greater than or equal to the value
B calculate and print the floor value of the total cost largest nearest integer of the value
To view the module IDmemory location:
A Using one print statement, output the identity id of each of the variables total
numbers user entered, tax rate, total tax, total cost before tax, total cost after tax, ceil, and floor
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