Question: ***For every program, printf (The purpose of the program, what it is evaluating) at the very beginning Q1: Write a program to read a character

 ***For every program, printf ("The purpose of the program, what itis evaluating) at the very beginning Q1: Write a program to read

***For every program, printf ("The purpose of the program, what it is evaluating) at the very beginning Q1: Write a program to read a character in upper case and then print it in lower case. (5 marks) (Hint: ASCII value of A is 65 and ASCII value of a is 97. So to convert a character from uppercase to lowercase, we have to add (97-65) i.e., 32 to get the ASCII value of the character in lowercase). Requirements: character to be read as kh. Output should be [Your First Name and Last Name) converts the upper case to lower case. Q2: Write a program to swap two numbers without using a temporary variable. (5 marks) Requirements: numbers to be input nmbl, nmb2 Output should be [Your student number] The first number is: The second number is: Q3. Write a program to enter a number from 1-7 and display the corresponding day of the week using switch case statement. (5 marks) Requirements: The name of the days to be printed SuNdAy (alternate cases) Also print "the value entered (if it is not 1-7) is not a valid number Q4. Write a program to prepare a grocery bill for Freshco. (10 marks) FRESH CO Lowering food prices HUNGRY MAN cara AHA $1 pepsi $2 JANES PUESTYLE Wing OSETTE SEVE 250 $6 we Housed Enter the name of the items purchased and its price per unit. Item Name Cost per unit Coca Cola $ 1 Hungry Man $ 2 Janes Wings $5 (Rounded) Maxwell House $3 (Rounded) Then display the bill in exactly the following format. ## ### ## ## FRESH CO BILL # # # # # # # # # Item Quantity Price Amount Total Amount to be paid

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!