Answered step by step
Verified Expert Solution
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++
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
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