Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q2- Write a program that reads the price and the tax rate of an item as float values, and shows the information such as item#,

image text in transcribed
Q2- Write a program that reads the price and the tax rate of an item as float values, and shows the information such as item#, price, tax rate and item price on the screen. The following is an example of a run for inputs and outputs): Enter the price: 456 Enter the tax rate: 12 Price Tax Rate: Item Price Item 1 456.00 12 510.72 Here is the calculation formula for the Item Price: Item Price = Price (1 + Tax Rate/100) Q3- Now modify your code written in Q2 so that the program reads the price and the tax rate of 3 items as float values, and displays the information itemit, price, tax rate, and item price on the screen. Your program must also calculate and show the Total amount of the purchased items on the screen. The following is an example of a run: Enter the price: 100 Enter the tax rate: 7 Enter the price: 245 Enter the tax rate: 12 Enter the price: 456 Enter the tax rate: 10 Item Price Tax Rates Item Price 1 2 3 100.00 245.00 456.00 79 128 100 107.00 274.40 501.60 Total amount: 883.00$ Don't you use lists or arrays to solve this question w O

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_2

Step: 3

blur-text-image_3

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

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

Understand how emergent change occurs.

Answered: 1 week ago

Question

1. Identify the sources for this conflict.

Answered: 1 week ago

Question

3. The group answers the questions.

Answered: 1 week ago