1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dimaraw [331]
3 years ago
14

Case 2: 1a. Create a class named Student. This class has attributes (fields) for an ID number, number of credit hours earned, an

d number of points earned. (For example, many schools compute grade point averages based on a scale of 4, so a three-credit-hour class in which a student earns an A is worth 12 points.) Include an attribute for grade point average. Include a method that calculates the grade point average (equal to number of points earned divided by credit hours earned), and then displays the student number and grade point average in the following format: "The GPA for Student Number XXX is YYY". Note that XXX is the actual student number and YYY is the actual grade point average. Though credit hours earned and points earned will always be in whole (integer) numbers, make sure that you are able to calculate and display GPAs with decimal positions (e.g., 3.1).
Engineering
1 answer:
777dan777 [17]3 years ago
8 0

Answer:

The java code will be:

// Student.java

// creates a class to store info about a student

class Student

{

// the private data members

private int IDnumber;

private int hours;

private int points;

private static int lastStudentID;

// the public get and set methods

public void setIDnumber()

{

 lastStudentID += 1;

 IDnumber = lastStudentID;

}

public int getIDnumber()

{

 return IDnumber;

}

public void setHours(int number)

{

 hours = number;

}

public int getHours()

{

 return hours;

}

public void setPoints(int number)

{

 points = number;

}

public int getPoints()

{

 return points;

}

// methods to display the fields

public void showIDnumber()

{

 System.out.println("ID Number is: " + IDnumber);

}

public void showHours()

{

 System.out.println("Credit Hours: " + hours);

}

public void showPoints()

{

 System.out.println("Points Earned: " + points);

}

public double getGradePoint()

{

 return (double) (points / hours);

}

}

You might be interested in
The pressure gage on a 2.5-m^3 oxygen tank reads 500 kPa. Determine the amount of oxygen in the tank if the temperature is 28°C
s2008m [1.1K]

Answer:

19063.6051 g

Explanation:

Pressure = Atmospheric pressure + Gauge Pressure

Atmospheric pressure = 97 kPa

Gauge pressure = 500 kPa

Total pressure = 500 + 97 kPa = 597 kPa

Also, P (kPa) = 1/101.325  P(atm)

Pressure = 5.89193 atm

Volume = 2.5 m³ = 2500 L ( As m³ = 1000 L)

Temperature = 28 °C

The conversion of T( °C) to T(K) is shown below:

T(K) = T( °C) + 273.15  

So,  

T₁ = (28.2 + 273.15) K = 301.15 K  

Using ideal gas equation as:

PV=nRT

where,  

P is the pressure

V is the volume

n is the number of moles

T is the temperature  

R is Gas constant having value = 0.0821 L.atm/K.mol

Applying the equation as:

5.89193 atm × 2500 L = n × 0.0821 L.atm/K.mol × 301.15 K  

⇒n = 595.76 moles

Molar mass of oxygen gas = 31.9988 g/mol

Mass = Moles * Molar mass = 595.76 * 31.9988 g = 19063.6051 g

7 0
3 years ago
What is noise definition in physics<br><br>​
Bess [88]

Answer:

Noise or sound is the energy produced by sounding object which can be felt by our hearing organs .

Explanation:

Noise is produced by vibration in a body.

4 0
3 years ago
25 points!!
adell [148]
Answer 1:

Like most electrical mechanical devices, electric motors have mechanical bearings that eventually wear out.

The graphite brushes and commutator of older DC motors can also wear out over time

Answer2:

Question two is not specific enough!!
Are we talking DC?? Because if so, then yes, nothing will happen. Assuming you are insulted by ground.
Ac is a different story, as the two would light up dangerously and etc.

-your welcome!!
5 0
4 years ago
the uniform bar (mass m and length l ) is leaning against a wall. the coefficient of static friction between all surfaces and th
zaharov [31]

The coefficient of static friction is the ratio of the maximum static friction force (F) between the surfaces in contact before movement commences to the normal (N) force.

<h3>What is coefficient of static friction formula?</h3>
  • The friction coefficient is the ratio of the normal force pushing two surfaces together to the frictional force preventing motion between them.
  • Typically, it is represented by the Greek letter mu (). In terms of math, is equal to F/N, where F stands for frictional force and N for normal force.
  • The ratio of the greatest static friction force (F) between the surfaces in contact before movement starts to the normal force (N) is known as the coefficient of static friction.
  • A body and a surface have static and kinetic friction coefficients of 0.75 and 0.5, respectively. The body is forced to slide with a constant acceleration that is equal to A. g4 by applying a force.

Find the attachment answer.

Learn more about coefficient of static friction refer to :

brainly.com/question/25050131

#SPJ4

8 0
1 year ago
Consider a multiprocessor system and a multithreaded program written using the many-to-many threading model. Let the number of u
Montano1993 [528]

Answer:

At the point when the quantity of bit strings is not exactly the quantity of processors, at that point a portion of the processors would stay inert since the scheduler maps just part strings to processors and not client level strings to processors. At the point when the quantity of part strings is actually equivalent to the quantity of processors, at that point it is conceivable that the entirety of the processors may be used all the while. Be that as it may, when a part string obstructs inside the portion (because of a page flaw or while summoning framework calls), the comparing processor would stay inert. When there are more portion strings than processors, a blocked piece string could be swapped out for another bit string that is prepared to execute, in this way expanding the use of the multiprocessor system.When the quantity of part strings is not exactly the quantity of processors, at that point a portion of the processors would stay inert since the scheduler maps just bit strings to processors and not client level strings to processors. At the point when the quantity of bit strings is actually equivalent to the quantity of processors, at that point it is conceivable that the entirety of the processors may be used at the same time. Be that as it may, when a part string hinders inside the piece (because of a page flaw or while summoning framework calls), the relating processor would stay inert. When there are more portion strings than processors, a blocked piece string could be swapped out for another bit string that is prepared to execute, along these lines expanding the usage of the multiprocessor framework.

4 0
3 years ago
Other questions:
  • Anyone have any good ways of revisiting <br> Or <br> Have any good study notes
    11·1 answer
  • Using a forked rod, a 0.5-kg smooth peg P is forced to move along the vertical slotted path r = (0.5 θ) m, whereθ is in radians.
    13·1 answer
  • If the compound swivel base is set on 60 degrees at the lathe centerline index, how many degrees will the reading be at the cros
    14·1 answer
  • The device whose operation closely matches the way the clamp-on ammeter works is
    8·1 answer
  • Consider an aircraft powered by a turbojet engine that has a pressure ratio of 9. The aircraft is stationary on the ground, held
    9·1 answer
  • Write a function called pyramid(height) that acceptsa parameter ""height"". It then prints a pyramid of that height
    10·1 answer
  • In a reversible process both the system and surrondings can be returned to their initial states. a)-True b)-False
    14·1 answer
  • Consider a resistor made of pure silicon with a cross-sectional area pf 0.5 μm2, and a length of 50 μm. What is the resistance o
    6·1 answer
  • Consider tests of an unswept wing that spans the wind tunnel and whose airfoil section is NACA 23012. Since the wing model spans
    13·1 answer
  • A dry sample of sand is placed in a container having a volume of 0.3 ft3. The dry weight of the sample is 31 lb. Water is carefu
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!