I have attached a screenshot of instructions.- Also I will attach the picture of how it should be done. Basically you have to design it like a tree like structure.
8:55
<
B
Homework due Feb 11,2021
Decision structure homework for 2019
Name:
Draw a flowchart or for each of the following 5
homework problems:
1. If the pay rate is less than $15/hour print
"look for another job" 1e;se print "Accept the job"
2. If the total rain was less than an inch then
print "It just rained" and if the total rain was
between 1 to 3 inches the print "It rained hard",
otherwise print "It was a wash".
3.
a.
Tax calculation on the residential property is
as follows:
If the property's value is less than or equal to
$250,000 the tax charged is $100 dollars,
b. If the property's value is between $250,000
and less than $500,000 then tax charge is 10
percent of the property's value, otherwise the tax
charge is 15% of the property's value.
Program should print out the tax charged.
4. Flight ticked charges are as follows:
a. If the traveler age is less the 2 there is no
charge
b. If the traveler's age is between 2 and 10
there is a 10% discount on the ticker price.
C. If the traveler is a senior citizen (age 55 and
over) there is a 15 percent discount on the ticket
cost, otherwise traveler has to pay the full ticket
price.
Program should print the age and the final ticket
price
...
8:55
CON SUCCESS
follows:
<
A
$250,000 the tax charged is $100 dollars,
b. If the property's value is between $250,000
and less than $500,000 then tax charge is 10
percent of the property's value, otherwise the tax
charge is 15% of the property's value.
Program should print out the tax charged.
C.
4. Flight ticked charges are as follows:
a. If the traveler age is less the 2 there is no
charge
b. If the traveler's age is between 2 and 10
there is a 10% discount on the ticker price.
If the traveler is a senior citizen (age 55 and
over) there is a 15 percent discount on the ticket
cost, otherwise traveler has to pay the full ticket
price.
Program should print the age and the final ticket
price
5. An UBER has a base charge of $10 and
would charge the occupants as follows:
a. If UBER occupancy is less than or equal 50%,
the total UBER charge is, the base charge add to
$5 charge per mile.
b. If UBER occupancy is higher than 50% and
less than 85%, the total UBER charge is the base
charge add to $10 charge per mile.
If UBER occupancy is greater than 85%, the
total UBER charge is the base charge add to $15
charge per mile.
C.
Program should print the total UBER charge
Got it, thanks!
Received,
thank you.
Thank you!
o Reply
« Reply all
Forward