Question
HOMEWORK 6 A Review of C++ 1. Write the code (IN C++!!!) to have the user enter a number, then print out BINGO if the
HOMEWORK 6 A Review of C++ 1. Write the code (IN C++!!!) to have the user enter a number, then print out BINGO if the number is negative AND a multiple of 8, dud . . . otherwise. Prompt the user if he/she wishes to enter another number. (25 points) 2. Write the code to have the user enter 10 doubles into an array, then compute the average of these 10 values. USE SYMBOLIC CONSTANTS!!! Format the average to display 2 decimal places. (25 points) 3. Write the code to compute the area of a circle of radius r. You MUST use a function that returns this area; also, you must use a symbolic constant for PI. Finally, you must display the area with two decimal places with appropriate units. (25 points) 4. Given the following code: #include
H06_v01b.docx Page 2 (of 2) April 26, 2021 / March 12, 2022 for(i=0; i What is the output of this code? (15 points)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started