Page 1 of 1

Instruction: crease You are required to write a program that uses objects. Declare a class and object(s) from the class

Posted: Fri Apr 29, 2022 6:39 am
by answerhappygod
Instruction Crease You Are Required To Write A Program That Uses Objects Declare A Class And Object S From The Class 1
Instruction Crease You Are Required To Write A Program That Uses Objects Declare A Class And Object S From The Class 1 (67.02 KiB) Viewed 39 times
Instruction Crease You Are Required To Write A Program That Uses Objects Declare A Class And Object S From The Class 2
Instruction Crease You Are Required To Write A Program That Uses Objects Declare A Class And Object S From The Class 2 (41.02 KiB) Viewed 39 times
Instruction: crease You are required to write a program that uses objects. Declare a class and object(s) from the class in a main method, which can be in the same class or in a separate class. Identify the suitable data member(s) and method(s) for your object definition class. Rubric: Criteria Marks (in scale of full marks= 10) Marks (in scale of full marks=30) 22 - 30 7.00 - 10.00 4.00 -6.99 13-21 The program has no error and fulfils the requirements of the program. The program has no error but does not fulfil the requirements of the program. The student attempts to write the program. However, the program has several errors. 0.00 - 3.99 0 - 12 The salinity of seawater is a measure of the amount of dissolved material in the seawater. Salinity is often measured using an instrument that measures the electrical conductivity of the water, the more dissolved materials in the water, the better it conducts electricity. Measurements of salinity are especially important in colder regions because the temperature at which seawater freezes is dependent upon its salinity the higher the salinity, the lower the temperature at which the seawater freezes. Write a Java program that input two consecutive points (a. fla)) and (c. f(c)) and the new salinity measurement b and display the new freezing temperature as the output. Use the following formula to compute the new freezing temperature, fb): f(b) = f(a) + (b-a)/(c-a)*(f(c) - f(a))
Example: Salinity a = 30 b = 33 Freezing temperature f(a) = 29.1 f(b) = ? f(c) = 28.6 f(b) = 29.1 +3/5*(28.6 -29.1) = 29.1 +0.6*(-0.5) = 29.1 + (-0.3) c=35 = 28.8