Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ 2. Write a program that will ask the user for the number of apples they wish to purchas apple and the tax in percent.

c++
image text in transcribed
2. Write a program that will ask the user for the number of apples they wish to purchas apple and the tax in percent. Have your program output the total price including tax. Note: that any currency should be formatted to two decimal places and should have a dollar sign appear before it. 3. Write a program that will ask the user to input two coordinates on a Cartesian plane: A(x1, y1) & B(x2, y2) Calculate and output the distance between A & B using the coordinates typed in by the user. Remember: the distance between two points is calculated with: d = (x2 - 1)2 + (y2 - y1)2

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

Concepts Of Database Management

Authors: Joy L. Starks, Philip J. Pratt, Mary Z. Last

9th Edition

1337093424, 978-1337093422

More Books

Students also viewed these Databases questions

Question

5 The mechanics of the circular flow model.

Answered: 1 week ago

Question

1 The difference between a command system and a market system.

Answered: 1 week ago

Question

4 How the market system adjusts to change and promotes progress.

Answered: 1 week ago