Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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

Database Marketing The Ultimate Marketing Tool

Authors: Edward L. Nash

1st Edition

0070460639, 978-0070460638

More Books

Students also viewed these Databases questions