write the following programs in blue j environment. please answer
1) Input name, class, div, fees and marks of student in three subjects (each subject is of 100 marks) using Scanner. Calculate total, average and percentage. Print all outputs with student name.
2) Input taxable income of user using Scanner. Using fixed tax rate of 4.5%, calculate tax and print it.
Answers
Explanation:
This program calculates the grade of a student based on the marks entered by user in each subject. Program prints the grade based on this logic.
If the average of marks is >= 80 then prints Grade ‘A’
If the average is <80 and >=60 then prints Grade ‘B’
If the average is <60 and >=40 then prints Grade ‘C’
else prints Grade ‘D’
To understand this Program you should have the knowledge of following concepts of Java:
Answer:
please mark me as brainliest
Explanation:
Input name, class, div, fees and marks of student in three subjects (each subject is of 100 marks) using Scanner. Calculate total, average and percentage. Print all outputs with student name.
2) Input taxable income of user using Scanner. Using fixed tax rate of 4.5%, calculate tax and print it.