QuestionQuestion

Q1) Write a program that prompts the user to enter an integer representing the day of the week. Then print out the day of the week for the corresponding integer. Also let me know when does the CS - 102 05 class meet?

Example : 1: Sunday, 2: Monday and so on.

Q2)Given three integer numbers by the user, output their maximum.

Q3)Write a program that employs a while loop to compute the average of 10 gades. Prompt the user to enter the grades one at a time.

Q4) Modify the above program where the user may enter any number of grades. As the number of grades can vary the user must be prompted to enter - -1 when finished. ( use sentinel)

Q5) Write a single program to read a valid input from the user (anything between 0 - 100) twice, once using the while loop and the second time using the do-while loop.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

/*
* File:   main.c
* Author:
*
*
*/

#include <stdio.h>
#include <stdlib.h>

void q1(){
    int day;
    printf("Enter the day of week: ");
    scanf("%d", &day);   
    switch(day){
       case 1:
            printf("Sunday");
            break;
       case 2:
            printf("Monday");
            break;
       case 3:
            printf("Tuesday");
            break;
       case 4:
            printf("Wednesday");
            break;...

By purchasing this solution you'll be able to access the following files:
Solution.c.

$13.00
for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available C-Family Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats