Question: Exercise 1: Create a java program that reads an integer N from the keyboard and displays all the numbers less than N that are divisible

 Exercise 1: Create a java program that reads an integer N

Exercise 1: Create a java program that reads an integer N from the keyboard and displays all the numbers less than N that are divisible by 7. Exercise 2: Create an array of 10 double. Read the array elements from the keyboard and then display only the positive numbers. Exercise 3: The results of a student in a module M are calculated based on the his/her marks in 3 assessments: a. Lab exam with 30% weightage b. Assignment 1 with 35% weightage C. Assignment 2 with 35% weightage 1. Create a class StudentResults in which you add as attributes the results of the student in the three assessments as described above. 2. Add a method FinalResult which calculates and displays the total marks of the student in the module M 3. Add a method PassFail which calls the method FinalResult and displays Pass if the student has a total score greater than 50 and Fail if not. 4. Create the Principal program that creates two instances of the class StudentResults entitled $1 and S2. Ask the user to introduce from the keyboard the marks for the 3 assessments for S1 and S2. Display the final results of the students S1 and 52 by calling the methods FinalResult and PassFail for S1 and 52

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!