Question: Object-oriented programming Eclipse is preferred to solve QI: (a): Implement a program to calculate the cube of a number given by the user. Your program
Object-oriented programming


Eclipse is preferred to solve
QI: (a): Implement a program to calculate the cube of a number given by the user. Your program must have a method getCube(int) which will calculate and return the value of cube. After testing the program, you must have to provide the source code below: (2.5) (b): Implement a program which can calculate the grade of a student as follows after entering the marks through the keyboard: Marks greater than or equal to 95= Grade A+ Marks greater than or equal to 90= Grade A Marks greater than or equal to 80= Grade B Marks greater than or equal to 70= Grade C Marks greater than or equal to 60= Grade D Marks less than 60= Grade F A method finalGrade(int) would be used to calculate and display the final grade in the Student \{\}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
