Question: #include int main() { /*The purpose of this lab is to use the printf and scanf along with making a logical expression. Consider this scenario:

 #include int main() { /*The purpose of this lab is to

#include int main() { /*The purpose of this lab is to use the printf and scanf along with making a logical expression. Consider this scenario: To pass a certain course, (1) the final exam cant be skipped and (2) an achievement of overall grade above 600 is required. Write a program that prompts the user to enter an overall grade, then final grade( if the student didnt take the final exam, insert O indicating he didnt take the exam), assign the data to their proper datatype and then write a print statement containing a logical expression that tells if this student passed the course: // using printf , prompt the user to enter current overall grade // declare a variable to hold the overall grade // using scanf, scan the value and assign to the declared variable // using printf, prompt the user to enter final exam grade, 0 if he didnt take the exam // declare a variable to hold the final exam grade // using scanf, scan the value and assign to the final exam grade variable // using printf , print if the this particular student passed the exam or not, make a logical expression that yields an answer in term of O indicating false or 1 indicating true. return 0; }

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!