Question: Language is C++ a. Write a program that uses a random number generator to generate a three-digit integer that allows the user to perform the


Language is C++
a. Write a program that uses a random number generator to generate a three-digit integer that allows the user to perform the following operations: 1. Sum the digits 2. Triple the number 3. Reverse the digits b. Use an enum, typedef, and string variable C. Store 10 random numbers in an array d. Sort the array e. Write the array to an external file f. Call a function to read the external file g. Print the array in a function Use the command script to capture your interaction compiling and running the program, including all operations, as shown below: CS1C Spring 2021 TTH HW01 50pts Due: Tu 1/26/2021 csic@cs1c-VirtualBox ~/csic/hw/01 $ script hw01.scr Script started, file is hw01.scr csic@cs1c-VirtualBox ~/csic/hw/01 $ date csic@cs1c-VirtualBox ~/csic/hw/01 $ ls - | csic@cs1c-VirtualBox ~/csic/hw/01 $ make all csic@cslc-VirtualBox ~/csic/hw/01 $ ls -1 csic@cslc-VirtualBox ~/csic/hw/01 $ ./hw01 ... // print out parts a, d&g above csic@cslc-VirtualBox ~/csic/hw/01 $ exit Script done, file is hw01.scr cslc@csic-VirtualBox ~/csic/hw/01 $ make tar Submit the tar package file hw01.tar by Tuesday January 26, 2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
