Course Hero Logo

Question 8 1 point saved which line in the following

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 3 - 6 out of 9 pages.

Question 8(1 point)SavedWhich line in the following program will cause a compilererror? The kline numbers are not part of the program.1#include <iostream>
2using namespace std;34int main( )5{6const double rate = 7.50;7double cost;8cost = 2 * rate;9rate = 10.25;10cout << cost << endl;11system ("PAUSE");12return 0;13}
Question 9(1 point)SavedYou want the user to enter the quantity and amount fromthe keyboard. Which cin statement is correctly written?
cin >> quantity >> amount>> endl;Question 10(1 point)SavedThis manipulator causes the field to be left-justified withpadding spaces printed to the right.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 9 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
NoProfessor
Tags
getline, 5, include

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture