Create a function which displays a message passed to it. This function will be created outside the main method. Chapter 9 goes into more detail regarding how to do this. Also, see the examples in...



  1. Create a function which displays a message passed to it. This function will be created outside the main method. Chapter 9 goes into more detail regarding how to do this. Also, see the examples in Chapters 8, 9, and 10 of theFundamentals
    of C++ Programmingbook for additional assistance.

  2. Next in your code, prompt the user for a status indicator of 1, 2, or 3.


1 – indicates normal
2 – indicates caution
3 – indicates emergency



  1. If a status of 1 is indicated, just place the number 1 in a text file.

  2. If a status of 2 is indicated, allow the user to enter some text listing the area of concern. Write the number 2 to the text file. Pass the area of concern to the function which displays a message.

  3. If a status of 3 is indicated, allow the user to enter some text listing the area which needs immediate attention. Write the number 3 to the text file. Pass the text and area of concern to the function which displays a message.

  4. Note, you are creating a text file. Look at the readings from the Reading and Viewing Assignments from Chapters 13, 17, 19, 20, 21, and 22 from the Halterman text, which are associated with ofstream, to assist you with completing this assignment.

Mar 30, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here