Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ Exercise #1: Center of Mass Every object has a point where its whole mass is concentrated so we can lift any object, by applying

c++
image text in transcribed
Exercise #1: Center of Mass Every object has a point where its whole mass is concentrated so we can lift any object, by applying force on that point only. If there are two objects m1 and m2 separated by distances X1 and 2 from a fixed point, the center of mass (X) of the two objects is given by: xim + x2m2 X = M + m2 Write a program that prompts the user to enter the mass mi and m2 of two particles and their positions xi and X2, the program calculates and prints the center of the mass. Sample Inputs / outputs: Enter the mass of the two particles: 149 Enter the position of the two particles: 5 13 The center of mass is: 8.13043 Exercise #2: Paycheck A chemicals company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who sells $5000 worth of chemicals in a week receives $200 plus 9 percent of $5000, or a total of $650. Write a program that will Inputs the salesperson's gross sales for the last week, calculates, and displays that salesperson's payment. Sample inputs / outputs: Enter the gross sales: 7050 The payment is 834.5

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

Systems Analysis And Synthesis Bridging Computer Science And Information Technology

Authors: Barry Dwyer

1st Edition

0128054492, 9780128054499

More Books

Students also viewed these Databases questions