Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need Help 1. Given that x=1, y=5, z=3, evaluate the following Boolean expressions: x =z m==0 or x>=1 yl/z==1 and 5:; 1 and x+4= =y)

Need Help

image text in transcribed
1. Given that x=1, y=5, z=3, evaluate the following Boolean expressions: x=z m==0 or x>=1 yl/z==1 and 5:; 1 and x+4= =y) orz= y=-2 g. x>1 and (x+4==y orz= y=-2) 2. 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 grade. Grade F: score less than 40 Grade D: score between 40 and 59 inclusive Grade C: score between 60 and 74 inclusive Grade B: score between 75 and 89 include Grade A: score greater than or equal to 90 3. Write a program that will prompt the user to enter a letter grade for a test, assign the value to a variable grade. Using the grade, the conversion to point grade below, display the user's point grade. Point 4: letter grade of A Point 3: letter grade of B Point 2: letter grade of C Point 1: letter grade of D Point 0: letter grade of F 4. Write a program the will prompt user to enter credits and point grade of three courses. Assign values to variables credits1, grade1, creditsZ, grade2, credit3, grade3. The program should calculate the gpa using gpa = (credits1*grade1 + credit32*grade2 + credits3*grade3)l;credits1+credit2 +credits3) The program should display the gag in 2 decimal places and also display the ranking using the following: Excellent: gag is 3.5 and above Very Good: gpa is greater than or equal to 2.75 and less than 3.5 Good: gpa is greater than or equal to 2.0 and less than 2.75 Poor: gpa is less than 2.0 ceases

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions