[4 marks] Design an algorithm to calculate and print the average of 3 numbers that has been provided by user {the user is prompted to enter 3...
This question has been answered
Question

These are computer science questions in c++ language. Please provide unique answers and quickly. I need it asap! Please answer all the questions and with full explanation. IMG_20210308_033859.jpg

Image transcriptions

[4 marks] Design an algorithm to calculate and print the average of 3 numbers that has been provided by user {the user is prompted to enter 3 numbers}. Assume the user enters 3 valid positive real numbers. To represent your algorithm, write the pseudocode below. [4] Write a program in C++ that implements (13. Follow the conventions and style of programming that vou have learnt so far. NOTE: For At! C++ Programs, use the aniline IDE firms'flreglfr. Run your program, copy/paste the code in this template and attach a snapshot of a saccessfiti test run. [6] {Check Number} Write a C++ program that prompts the user to enter a number, checks whether the number is positive, negative, or zero, and prints a message accordingly. You must use iflelse ifr' else. Here is a sample run: Enter a number: 4 4 is positive. [6] Write the following pseudocode in C++. What is the printout? Explain the function of the program in one sentence. Set mto 10 NHILE (gum is greater than a) Print 5.9m Set gym to GUI!) - 2 [6] {Sum of Numbers} Write the following pseudocode in C++. If the sequence of input data is 1 2 3 4 5 6 7 8 0, what is the printout? Explain the function of the program in one sentence. Set sum to 0 Read number NHILE (number is not 0) Set sum to sum + number Read number write "Sum is + sum

Answered by Expert Tutors

ia pulvinar tosque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Na

s

inia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui

u

ng elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congu

ce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec ali

, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna

am

ongue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pul

Step-by-step explanation
17013710
17013803
17013883
17013951
4 Attachments
d15.png
png
d16.png
png
d17.png
png
d18.png
png
The student who asked this found it Helpful
Overall rating 100%
Get unstuck

392,264 students got unstuck by Course
Hero in the last week

step by step solutions

Our Expert Tutors provide step by step solutions to help you excel in your courses