b Answered: Introduction: Assig x A Basic Elements Project O Repl.it - Home 3 Basic Elements Project.pdf...

The language for this program is C++b Answered: Introduction: Assig x<br>A Basic Elements Project<br>O Repl.it - Home<br>3 Basic Elements Project.pdf<br>/home/chronos/u-26d48798208cc1221d0a470513edf0567ccc532e/MyFiles/Downloads/Basic%20Elements%20Project.pdf<br>Basic Elements Project<br>Program 1.<br>Consider the following program segment:<br>1<br>//include statement (s)<br>3.<br>//Using namespace statement<br>4<br>int main()<br>6.<br>//variable declaration<br>8<br>6.<br>//executable statements<br>10<br>11<br>//return statement<br>12<br>}<br>a.<br>Write a C++ statement that includes the header files iostream and string.<br>b.<br>Write a C++ statement that allows you to use cin, cout, and endl without the prefix std::.<br>C.<br>Write C++ statements that declare the following variables: name of type string and<br>studyHours of type double.<br>d. Write C++ statements that prompt and input a string into name and a double value into<br>studyHours.<br>Write a C++ statement that outputs the values of name and studyHours with the appropriate<br>text. For example, if the value of name is

Extracted text: b Answered: Introduction: Assig x A Basic Elements Project O Repl.it - Home 3 Basic Elements Project.pdf /home/chronos/u-26d48798208cc1221d0a470513edf0567ccc532e/MyFiles/Downloads/Basic%20Elements%20Project.pdf Basic Elements Project Program 1. Consider the following program segment: 1 //include statement (s) 3. //Using namespace statement 4 int main() 6. //variable declaration 8 6. //executable statements 10 11 //return statement 12 } a. Write a C++ statement that includes the header files iostream and string. b. Write a C++ statement that allows you to use cin, cout, and endl without the prefix std::. C. Write C++ statements that declare the following variables: name of type string and studyHours of type double. d. Write C++ statements that prompt and input a string into name and a double value into studyHours. Write a C++ statement that outputs the values of name and studyHours with the appropriate text. For example, if the value of name is "Donald" and the value of studyHours is 4.5, the е. output is: Hello, Donald! on Saturday, you need to study 4.5 hours for the exam f. Compile and run your program.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here