Answered step by step
Verified Expert Solution
Link Copied!

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 221 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 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%)
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 (4 total) on a single (one) line (not on separate lines).
B. Output a meaningful/descriptive message for all values.
C. Ensure the tax and total cost include 2 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 ID/memory location:
A. 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)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

Understand the importance of strategic HR planning.

Answered: 1 week ago