Posted by Lee on Sunday, October 17, 2010 at 9:25am.
Use input statements to get the requested items and store them in variables, the occupation should be stored in a string variable, the amount of the bill and the percentage could be in type decimal.
Write a sub procedure that accepts three arguments, namely the values input earlier, and display the person's occupation and the tip. You can calculate the tip by multiplying the bill amount and the percentage. If the bill comes to 50$ and the percentage is 15%, you would calculate 50*15/100=$7.50.
Post your pseudocode or your code for checking if you wish.
This one is done, Than you so much MathMate, for solution it worked.
person occupation truck driver
amount of bill=$50
The tip =7.50
end sub
Related Questions
Computer - Write the program that will calculate and display the career ...
MATH - WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF ...
Computer class - how do I design a program using a flowchart, the program needs ...
Visual Basics 2008 - This is a from chapter 3 #82. the problem is: Write a ...
computer science - write a program to select the classes that you are taking(Ex...
CIS 115 - I need help with the visual logic flowchart for the following problem...
Public Policy Human Services - I am writing a 300-word program analysis for a ...
computer science - in one the chapter 3 programming challenges you were asked to...
computer science - write a program that prompts the user to input three numbers...
computer science - Write a program that prompts the user to input three numbers...
For Further Reading