Chapter 2: Programming Project 1 Unlimited tries (Financial application: calculate tips) Write a program that reads the

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Chapter 2: Programming Project 1 Unlimited tries (Financial application: calculate tips) Write a program that reads the

Post by answerhappygod »

Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 1
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 1 (74.87 KiB) Viewed 35 times
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 2
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 2 (66.3 KiB) Viewed 35 times
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 3
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 3 (63.43 KiB) Viewed 35 times
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 4
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 4 (40.2 KiB) Viewed 35 times
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 5
Chapter 2 Programming Project 1 Unlimited Tries Financial Application Calculate Tips Write A Program That Reads The 5 (41.62 KiB) Viewed 35 times
Chapter 2: Programming Project 1 Unlimited tries (Financial application: calculate tips) Write a program that reads the subtotal and the gratuity rate, then computes the gratuity and total. For example, if the user enters 10 for subtotal and 15% for gratuity rate, the program displays $1.5 as gratuity and $11.5 as total. Sample Run Enter the subtotal and a gratuity rate: 10 15 The gratuity is $1.5 and total is $11.5 For a hint on this program, please see https://liangcpp.pearsoncmg.com/cpprevel2e.html. If you get a logic or runtime error, please refer to https://liangcpp.pearsoncmg.com/faq.html. 1 Enter your code

of 5 points Chapter 2: Programming Project 2 Unlimited tries (Find the number of years) Write a program that prompts the user to enter the minutes (e.g., 1 billion) and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Sample Run Enter the number of minutes: 1000000000 1000000000 minutes is approximately 1902 years and 214 day: For a hint on this program, please see https://liangcpp.pearsoncmg.com/cpprevel2e.html. If you get a logic or runtime error, please refer to https://liangcpp.pearsoncmg.com/faq.html. 1 Enter your code Show answer Submit

-- of 5 points Chapter 2: Programming Project 3 Unlimited tries (Geometry: distance of two points) Write a program that prompts the user to enter two points (x1, y1) and (x2, y2) and displays their distance between them. The formula for computing the distance is: Square root of ((x2-x1) squared + (y2-y1) squared) Note that you can use pow (a, 0.5) to compute square root of a. Sample Run Enter x1 and yl: 1.5 -3.4 Enter x2 and y2: 4 5 The distance between the two points is 8.764131445842194 For a hint on this program, please see https://liangcpp.pearsoncmg.com/cpprevel2e.html. If you get a logic or runtime error, please refer to https://liangcpp.pearsoncmg.com/faq.html. 1 Enter your code

Question 4 of 5 -- of 5 points Chapter 2: Programming Project 4 Unlimited tries (Geometry: area of a triangle) Write a program that prompts the user to enter three points (x1, y1), (x2, y2), (x3, y3) of a triangle and displays its area. The formula for computing the area of a triangle is: s= (side 1 + side2 + side3)/2 area = square root of s(s-side 1)(s-side2xs-side3) Sample Run Enter three points for a triangle: 1.5 -3.4 4.6 5 9.5 -3.4 The area of the triangle is 33.6 For a hint on this program, please see https://liangcpp.pearsoncmg.com/cpprevel2e.html. If you get a logic or runtime error, please refer to https://liangcpp.pearsoncmg.com/faq.html. 1 Enter your code

Chapter 2: Programming Project 5 Unlimited tries (Financial application: future investment value) Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value using the following formula: futureinvestmentValue = investmentAmount x (1 + monthlyInterestRate)^(numberOfYears x 12) For example, if you enter amount 1000.56, annual interest rate 4.25%, and number of years 1, the future investment value is $1043.92. Sample Run Enter investment amount: 1000.56 Enter annual interest rate in percentage: 4.25 Enter number of years: 1 Accumulated value is $1043.92 For a hint on this program, please see https://liangcpp.pearsoncmg.com/cpprevel2e.html. If you get a logic or runtime error, please refer to https://liangcpp.pearsoncmg.com/faq.html. 1 Enter your code
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply