1. Engineering
  2. Computer Science
  3. 7 5 what does the following program print include using...

Question: 7 5 what does the following program print include using...

Question details

7. (5) What does the following program print? #include <iostream> using namespace std; const int LBS = 10; int main 0 int price-30, cost = price * LBS; char ch = ‘A; cout << Cost is <<endl: cout << cost << endl; cout << “Price is price << endl << “Cost is “ < cost << endl; cout << Grade ch<<costs<endl: cout << cost<<endl; return 0: (10) Given the following program fragments: int i-4, j 17; float z-2.6 8. alue of each of the following expressions. If the result is a floating point value, include a decimal point in your answer. a. a. (float) j 2 d. i+j% i f. 2*i+j - i g. j/2 h. 2 3-1% 3 j. (int)(z + 0.5)

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution