You are on page 1of 3

01

Program:
Write that
a program the
asks user
toenter
the andthen
amount
Total
calculate the
anddisplaydiscount
amount.
Give
the onthe
discount basis
of
table:
following
Amount Discount
00000 1000 10%
01001-5000 20%
0500110000 30%
-
10001 50%

Validation:
Input
Don't value
negative
accept asaninput
02
Program:
Write that
a program askthe
user
toenter
thevalue
ofa.bandcand
then the
display twovalues
ofx.
X1 = -btb-4ac
2a

X2 =-b-Nb-4ac
2a

03
Program:
Write askthe
that
a program uses
toenter
thevalue
ofanangle
in
degree.
Calculate the
anddisplayvalue
of
anangleinradian.
Formula:
Radian *n/180)
=(Degree
04
Program:
Calculator
MakeanArithmetic
switch
using statement
Theprogram askthe
should user
toenter
twovalues
andthen
anArithmetic
perform Operation
On it.
Validation:
Input
1.
Showthe Screen
menuonOutput
following
Choosc
anOption
Addition(+)
Subtraction(-)
Multiplaction(*)
Division
/)
Hint:
1.
Uscfloat variable
type

You might also like