1. What is the output of the following C++ programs?
#include
using namespace std;
int main()
{
cout << "Testing our ";
cout << "program in C++ language . "< cout << "10 -5 = " << 10 - 5<< endl;
return 0;
}
2. Given the radius, in inches, and price of a pizza, design an algorithm to find the price of the pizza per square inch.
3. The cost of an international call from Abu Dhabi to Khartoum is calculated as follows: Connection fee 1.99; 2.00 Dirham for the first three minutes; and 0.45 for each additional minute. Design an algorithm that asks the user to enter the number of minutes the call lasted. The algorithm then uses the number of minutes to calculate the amount due.
4. To make a profit, the prices of the items sold in a furniture store are marked up by 60%. Design an algorithm to find the selling price of an item sold at the furniture store. What information do you need to find the selling price?