Implement the programming problems below Submit the source c

Implement the programming problems below. Submit the source code and output for each program. Write an interactive C++ program that reads in a person s current weight. The program should calculate what the person would weigh if they lost 15% of their current weight. The program should print the current weight and the new weight. Assume the cost of an international call from Houston to Mexico is calculated as follows: Connection fee A¢ $1.99, and then $2.00 for the first minute, and $0.45 for each additional minute Write an interactive C++ program that reads in the number of minutes a call lasted. The program should calculate using the information above the total cost for the call based on the minutes. The program should print the number of minutes the call lasted and the total cost for the call on separate output lines. Declare the connection fee as a constant variable with the value of 1.99. (AII calls are rounded up to the next minutes so I would be the shortest call tune entered] An elementary school class has been collecting quarters, dimes, and nickels as a fund raiser to help pay for a school field trip. Write an interactive C++ program that reads in the total number of quarters, the total number of dimes, and the total number of nickels the class has collected. The program should then calculate and print the total amount of money the class has.

Solution

#include <iostream>
#include <string>


using namespace std;


int main(int argc, char const *argv[])
{
   int current_age;

   float new_age;

   cout << \" please enter current age : \" ;

   cin >> current_age;


   new_age = 0.85*current_age;


   cout << \"current age is \" << current_age << endl;

   cout << \"new age after losing 15 % weight is \" << (int)new_age << endl;

   return 0;
}

output :-

please enter current age 233
current age is 233
new age after losing 15 % weight is 198

 Implement the programming problems below. Submit the source code and output for each program. Write an interactive C++ program that reads in a person s current

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site