Purchase Solution

Pseudo-code and Program to Calculate Average

Not what you're looking for?

Ask Custom Question

Declare Num1, Num2, and Num3 as integers
Declare Average as real
Write "Welcome to the program. Enter 3 positive numbers",
INPUT Num1, Num2, Num3
Average = (Num1 + Num2 +Num3) / 3
Write "The average of three numbers entered is", Average
Stop

1. List all variable name(s) used in this program
2. List each prompt that is used in this program.
3. Show what the PC monitor will show when the program is executed with the following values used: 27, 12, and 15.
4. Write a new program in pseudo-code, it should input-and calculate the average of 5 numbers entered.

Purchase this Solution

Solution Summary

Learn how to identify variables and write pseudo-code for a program to calculate average of 5 real numbers

Solution Preview

1. Variables are placeholders for your data. You have explicitly declared them in your program.
They are: Num1, Num2, Num3, Average

2. Prompt is made for user input. There seems to be just one.
INPUT Num1, Num2, Num3

3. The PC ...

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Javscript Basics

Quiz on basics of javascript programming language.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.