(C PROGRAMMING ONLY) 3. Entertaining the Bored by CodeChum Admin We're now in the middle of our tour but I see these two guys getting bored. I see that their level of engagement is getting low. Luckily, I remember that I'm good at cheering up. Oh wait, the last time I cheered someone up was a long time ago. Please help me learn how to cheer people up again. Instructions: In the code editor, you are provided with the main() function that asks the user for 2 double numbers which represents the engagement levels of the two bored guys and the passes the address of those 2 double numbers to the function call for the function, cheerUp(). Your task is to implement the function definition of the cheerUp() function. The cheerUp() function should update the values passed by multiplying each of them by 3. Do not edit anything in the main() function. Input 1. First Engagement Level 2. Second Engagement Level
(C
3. Entertaining the Bored
by CodeChum Admin
We're now in the middle of our tour but I see these two guys getting bored. I see that their level of engagement is getting low.
Luckily, I remember that I'm good at cheering up. Oh wait, the last time I cheered someone up was a long time ago. Please help me learn how to cheer people up again.
Instructions:
In the code editor, you are provided with the main() function that asks the user for 2 double numbers which represents the engagement levels of the two bored guys and the passes the address of those 2 double numbers to the function call for the function, cheerUp().
Your task is to implement the function definition of the cheerUp() function. The cheerUp() function should update the values passed by multiplying each of them by 3.
Do not edit anything in the main() function.
Input
1. First Engagement Level
2. Second Engagement Level
Output
Enter engagement level #1: 42.31
Enter engagement level #2: 20
Updated engagement level #1: 126.93
Updated engagement level #2: 60.00
Step by step
Solved in 2 steps with 2 images