Question: IV Programming and Implementation (30%) 1. Program to print number of days in month using switch...case(10 marks) 1) Input month number from user. Store it

 IV Programming and Implementation (30%) 1. Program to print number of

IV Programming and Implementation (30%) 1. Program to print number of days in month using switch...case(10 marks) 1) Input month number from user. Store it in some variable say month. 2) Switch the value of month i.e. switch(month) and match with cases. 3) There can be 12 possible values (choices) of month i.e. from 1 to 12. Hence, write 12 cases inside switch and one default case as else block. 4) Print 31 for case 1, 3, 5, 7, 8, 10, 12. 5) Print 30 for case 4, 6, 9, 11. 6) Print 28/29 for case 2 7) Print invalid input for default case. Write a program to read 10 double numbers from file "value.txt" into an array of size 10, calculate the summation and find out the smallest value. (10 marks) file double int). Smallest(double",int), 1) The program should include three more functions, ReadFile(doua Summation(double",int). 2) These three functions should be called in the main function 3) ReadFile is implemented to read data from "value.txt" into the array 4) Summation is implemented to calculate the summation value from the army 5) Smallest is implemented to find out the smallest value from the array 3. Write a program in C to copy a sentence in reverse order and replace lowercase characters by uppercase and vice-versa. Test Data: Ituja NI TNEDUTS LANOITANRETNI NA MAI Expected Output: copy a sentence in reverse order: Input the string : Itujz NI TNEDUTS LANOITANRETNI NA MAI Copied the string in reverse order: I am an International student in ZJUT

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!