You are on page 1of 2

DISCOUNT: Create a program that will compute for the discount based on the given criteria below and

to be paid by the customer. Round off your answer in two decimal places.
0 - NO
1 - YES
REGULAR
CARD HOLDER
STAKE HOLDER
0
0
0
0
0
0
0
0
1
0
0
1
0
1
0
0
1
0
0
1
1
0
1
1
1
0
0
1
0
0
1
0
1
1
0
1
1
1
0
1
1
0
1
1
1
1
1
1

OPERATE: Using Switch Case, create a program that will accept 2 input values. Then let the user choos
or divide the two input numbers. For subtaction, if the first number is less than the second number, di
negative result then produce the result. For division, take note that you can not divide any number wi
NOTE: COMBINATION OF SWITCH CASE AND IF STATEMENT
NOTE:ROUND OFF YOUR ANSWER INTO TO DECIMAL PLACES.

OVAL: A runner runs 18 minutes to finish a lap in an oval shape track field with the speed of 10 kph. T
into 3 colors, first part is red, next is blue and last is yellow. Identify the color location of a runner if ha
number of time in minutes.

ased on the given criteria below and the total discounted price
l places.
STUDENT/SENIOR/PWD
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1

Discount
0%
3%
18%
20%
4%
20%
18%
24%
10%
20%
18%
22%
20%
26%
28%
30%

input values. Then let the user choose to add, subtract, multiply
er is less than the second number, display you will produce a
at you can not divide any number with zero(0).

ack field with the speed of 10 kph. The track is equally divided
fy the color location of a runner if had run for a certain period

You might also like