a)C = WTK/1000Where, W = no. of wattsT = Time in hoursK = cost (in Rs.) per Kilowatt hoursIt is required to print a table showing the cost for various values of W from 100watts to 1000 watts, increment with 50 watts. T from 1 hour to 10 hours, steps of1 hour. K from Rs. 1.50 to Rs. 10.00 steps of 50 paise.a.So, now write a menu based program thatb.shows menu with menu-items : Watts, Time and Unit-Cost andthenc.accepts choice form userd.and prints table as per choice entered by the user.8 Write a do-while loop to evaluate and print the values of the quadraticpolynomialy=x
+10x-11 for the value of x = 0.0 to 1.0 with steps 0.2.9 Write a for loop to print the numbers between –1 and –30 and their squaresand cubes.10 Read n numbers from user and find maximum and minimum of thosenumbers.11 Read numbers from user till he wants; also calculate sum of sum of positivenumbers and product of negative numbers.12 Find the sum of first and last digit of an integer number.13 1! + 2! + 3! + …+n!14 X – X
/3! + x
/7!+…15 Generate a menu-driven calculator that will accept two numbers from theuser and ask for the choice to add, subtract, multiply, divide or exit. After theresult is calculated and displayed as per the user’s choice; the program shouldask the user whether he wants to continue calculations or not.16 Generate the series:- 1,-3,5,-7,9,-11,13…(1
N numbers).17 Generate a menu-driven Temperature-conversion program. The menu shoulddisplay three options: (1) Fahrenheit-to-Celsius (2) Celsius-to-Fahrenheit (3) Exit.The program should accept user’s choice and then should functionappropriately. This process function till user does not exit.