Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3. Given that x=1,y=5,z=3, evaluate the following Boolean expressions: a. x =2 b. y%z==0 or x>=1 c. y//z==1 and x+z 1 and x+4=zy) or z=y2

image text in transcribed
3. Given that x=1,y=5,z=3, evaluate the following Boolean expressions: a. x=2 b. y%z==0 or x>=1 c. y//z==1 and x+z1 and x+4=zy) or z=y2 g. x>1 and (x+4=zy or z=z2) 4. Write a program that will prompt the user to enter raw score on a test and assign value to a variable score. Using the grading schedule below, display the user's letter grade. Grade F : if score less than 40 Grade D: if score between 40 and 59 inclusive Grade C: if score between 60 and 74 inclusive Grade B: if score between 75 and 89 include Grade A: if score greater than or equal to 90 5. Write a program the will prompt the user to enter a letter grade for a test, assign the value to a variable grade. Using the grade, convert to point grade using the conditions as shown below. Display the user's point grade. Point 4: if letter grade of A Point 3 : if letter grade of B Point 2: if letter grade of C Point 1 : if letter grade of D Point 0 : if letter grade of F 6. Write a program the will prompt user to enter credits and point grade of three courses. Assign values to variables credits1, grade1, credits2, grade2, credit3, grade3. The program should calculate the gpa using gpa = (credits1"grade 1+ credits2*grade 2+ credits 3 grade3) / (ccredits 1+ credit 2+ credits 3 ) The program should display the gpa in 2 decimal places and also display the ranking using the following: Excellent: if gpa is 3.5 and above Very Good: if gpa is greater than or equal to 2.75 and less than 3.5 Good: if gpa is greater than or equal to 2.0 and less than 2.75 Poor: if gpa is less than 2.0

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions