You are on page 1of 1

R E F L E X E S

Takes a GENIUS to understand its SIMPLICITY

Time: 45 mins:
45 marks

1) The standard form of quadratic equation is given by:


ax2+bx+c=0, and d=b2-4ac is known as discrimanat,which determines the nature of the roots
of the equation accordingly?
Value of discriminant Nature
d>0 Roots are real and unequal
d=0 Roots are real ad equal
d<0 Roots are imaginary
Wap to determine the nature of roots of a quadratic equation by taking a,b,c as input.

2)Using a switch case statement, write a menu driven program to convert a given temperature from Fahrenheit to
Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed.

3)An electronics shop has announced the following seasonal discounts on purchase of certain
items.
Category Discounts on Laptop Discount on Desktop PC
Up to Rs.25000 0.0% 5.0%
Rs.25001-Rs. 57000 5.00% 7.00%
Rs. 57001- Rs.100000 7.5% 10.0%
More than Rs. 100000 10.0% 15.0%

Write a program based on above criteria, to input name, address, amount of purchase and the type of purchase(‘L’ for
Laptop and ‘D’ for Desktop). Compute and print the net amount to be paid by a customer with his name and address.

Reflexes:San’s Concept Classes//:9831946400

You might also like