Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

GC2.4 Write a Java program that uses a multi-way selection if-else-if statement to print the letter grade of a student according to his numeric mark

image text in transcribed
GC2.4 Write a Java program that uses a multi-way selection if-else-if statement to print the letter grade of a student according to his numeric mark and display it as per the table given below Condition Printed output Mark between 90 and 100 Grade A Mark between 80 and 89 Grade B Mark between 70 and 79 Gradec Mark between 60 and 69 Grade D Markless than 60 Fail Mark more than 100 or negative INVALID MARK public class Gradecalculator public static void main(String args[]) { int mark=60

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago