4/19/2012
IT104 Homework Assignment 5
Answer the next questions from Chapter 3 of your textbook,
Starting Out with Programming Logic & adenine; Design:
Mul wobblele Choice Review Questions 12-15 on p. cx
12.C
13.A
14.D
15.B
Algorithm Workbench Review Question 2, 3, and 6 outset on p. 111
2. show_value(12)
3. A=3 B=2 C=1
61 3.4
0 0
1 3.4
Submit your answers in a word-processed document
-------------------------------------------------
IT104 Lab 5
1.) Meal Price - Requirements
Write a political class that go out calculate a 20% tip and a 6% tax on a meal price. The exploiter will enter the meal price and the political program will calculate tip, tax, and the descend. The total price is the meal price, asset the tip, plus the tax.
You will need to do this program using functions and variables. The functions involve in your program argon:
Main() prints welcome message and calls the otherwise
functions
inputMeal() gets meal price
calcTip() calculates tip for meal
calcTax() calculate tax for meal
calcTotal() calculate total meal cost
printInfo() prints meal price, tip, tax, total cost.
Make sure outputs are labeled
Add comments in your program rule.
Each function should make up a comment about what the function does. Dont forget to add a call to the main() as the become statement in your program code.
Do Not practise any global variables in this program
When running your program, enter 24.50 as the meal price. Your output should look as follows:
Welcome to the tip and tax calculator program
Enter the meal price $24.50
The meal price is $ 24.5
The tip is $ 4.9
The tax is $ 1.47
The total is $ 30.87
Name the program Meal Price.
Complete a flowchart for this program and code your solution in Python using PyScripter.
Paste your flowchart, program code, and program output here
##
#This is my main function that has all other functions inside(a) of it...If you want to get a full essay, order it on our website: Orderessay
If you want to get a full essay, wisit our page: write my essay .
No comments:
Post a Comment