Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design A Practical Approach

Authors: Marilyn Campbell

1st Edition

1587193175, 978-1587193170

More Books

Students also viewed these Databases questions