Write a VBA program to calculate the average of three numbers. The three numbers should be input via an input box and the result should be displayed in a message box. The result should also be reported within the excel worksheet in cell [a2]. Declare all variables as real numbers.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section: Chapter Questions
Problem 8PP
icon
Related questions
Question
Live interactive example 1: Find the average of three numbers
1. Write a VBA program to calculate the average of three numbers. The three numbers should
be input via an input box and the result should be displayed in a message box. The result
should also be reported within the excel worksheet in cell [a2]. Declare all variables as real
numbers.
2. Write a function to calculate the average of three numbers
Transcribed Image Text:Live interactive example 1: Find the average of three numbers 1. Write a VBA program to calculate the average of three numbers. The three numbers should be input via an input box and the result should be displayed in a message box. The result should also be reported within the excel worksheet in cell [a2]. Declare all variables as real numbers. 2. Write a function to calculate the average of three numbers
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Excel Sheet
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr