Page 1 of 1

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

Posted: Fri Apr 29, 2022 6:38 am
by answerhappygod
Instruction You Are Required To Write A Program That Uses Object S Declare A Class And Create Object S From The Clas 1
Instruction You Are Required To Write A Program That Uses Object S Declare A Class And Create Object S From The Clas 1 (50.71 KiB) Viewed 70 times
Instruction You Are Required To Write A Program That Uses Object S Declare A Class And Create Object S From The Clas 2
Instruction You Are Required To Write A Program That Uses Object S Declare A Class And Create Object S From The Clas 2 (13.45 KiB) Viewed 70 times
Instruction: You are required to write a program that uses object(s). Declare a class and create 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, fa)) 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, f(b): f(b) = f(a)+(b-a)/(c-a*(f(c)-f(a))
Semester 2 2021/2022 Example: Salinity Freezing temperature a - 30 f(a) = 29.1 b33 f(b) = ? c = 35 f(c) = 28.6 f(b) = 29.1 + 3/5*(28.6 -29.1) - 29.1 +0.6*(-0.5) = 29.1 + (-0.3) = 28.8