Share
Explore BrainMass

Writing a Program that Calculates Money Earned

I do not know what to do for this Visual Basic 2005 problem. It asks to write a program that calculates the amount of money earned in a walk-a-thon. It is supposed to:

- Request the amount pledged per mile from an input dialog box, and assign it to the variable "pledge".
- Request the number of miles walked from an input dialog box, and assign it to the variable "miles".
- Display a sentence giving the amount to be paid.
- Declare all variables used

I was testing the program with a pledge of $2.00 and a 15-mile walk.

Solution Summary

This solution provides a written program that calculates amount of money earned.

$2.19