Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

replit Conditionals 1 my repls student notifications 89 talk leam/teach dtellez57(0) - share your program enhance your work after submitting O export to repl Due:

image text in transcribed

replit Conditionals 1 my repls student notifications 89 talk leam/teach dtellez57(0) - share your program enhance your work after submitting O export to repl Due: Feb 18, 2020 11:59 pm submit back to classroom run - Instructions from your teacher: 4 5 There are two sections of code you have to write, they are enclosed like this: * askGrade: * Asks the student for a letter grade * (A = 90-100, B = 80-89, etc.) * then gives the appropriate letter grade in upper case. 7 BEGIN YOUR CODE void askGrade int grade; { TODO: Description of the task WEND YOUR CODE printf("Enter your grade: "); scanf("%d", &grade); printf("Your grade is: "); The first section is in the askGrade() method. You have to use If-Else statements to check the range of a grade and assign it a letter grade: // BEGIN YOUR CODE // TODO: Use if-else statements to print the right letter grade. A= 90-100 . B = 80-89 C= 70-79 D = 60-69 F = 0-59 ERROR, otherwise // END YOUR CODE You only have to print out the right letter using printf(). clang version 7.0.0-3-ubuntu. 18.84.1 (tags/RELEASE_700/final) The second section is in the dayOfTheWeek() method. You have to use a Switch statement to print out the right day of the week: Monday = 1 Tuesday = 2 Wednesday = 3 Thursday = 4 Friday = 5 Saturday = 6 Sunday = 7 ERROR, for all other numbers

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

Seven Databases In Seven Weeks A Guide To Modern Databases And The NoSQL Movement

Authors: Luc Perkins, Eric Redmond, Jim Wilson

2nd Edition

1680502530, 978-1680502534

More Books

Students also viewed these Databases questions