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
GuDViN [60]
3 years ago
11

Create a class named student. a student has fields for an id number, number of credit hours earned, and 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 methods to assign values to all fields. a student also has a field for grade point average. include a method to compute the grade point average field by dividing points by credit hours earned. write methods to display the values in each student field. save this class as student.java.
Computers and Technology
1 answer:
PIT_PIT [208]3 years ago
5 0

/****************

* Student.java *

****************/

public class Student

{

   int sid;

   int credithours;

   int points;

   double averagegrade;

 // constructor to assign initial values

   public Student() {

       this.sid = 9999;

       this.credithours = 3;

       this.points = 12;

   }

 // methods to assign values to all fields.

   public void setCredithours(int credithours) {

       this.credithours = credithours;

   }

   public void setPoints(int points) {

       this.points = points;

   }

   public void setSid(int sid) {

       this.sid = sid;

   }

 // method to compute the grade point average field by dividing points by credit hours earned.

   public void computeAveragegrade()

   {

       this.averagegrade = this.points / this.credithours;

   }

 // methods to display the values in each Student field

   public void showSid(){

       System.out.println("Student id is : " + this.sid);

   }

   public void showPoints(){

       System.out.println("Number of points earned : " + this.points);

   }

   public void showCredithours(){

       System.out.println("Number of credit hours earned : " + this.credithours);

   }

   public void showAveragegrade(){

       System.out.println("Average grade point is : " + this.averagegrade);

   }

}

You might be interested in
What would be the code of this in HTML ??
Alla [95]

Answer:r tHE RED LINE

Explanation:

Its not supost to be there

8 0
3 years ago
Select the correct answer.
dedylja [7]

Answer:

D. MAN

Explanation:

A local area network (LAN) refers to a group of personal computers (PCs) or terminals that are located within the same general area and connected by a common network cable (communication circuit), so that they can exchange information from one node of the network to another. A local area network (LAN) is typically used in small or limited areas such as a set of rooms, a single building, school, hospital, or a set of well-connected buildings. Some of the network devices or equipments used in a local area network (LAN) includes an access point, personal computers, a switch, a router, printer, etc.

On the other hand, a metropolitan area network (MAN) is formed by an aggregation of multiple local area network (LAN) that are interconnected using backbone provided by an internet service provider (ISP). A metropolitan area network (MAN) spans for about 5 kilometers to 50 kilometers in size.

Basically, a metropolitan area network (MAN) spans across a geographic area such as a city and it's larger than a local area network (LAN) but significantly smaller than a wide area network (WAN).

In conclusion, the network type that the patrol services of a city's police department would most likely use is a metropolitan area network (MAN).

6 0
3 years ago
Which web design concept is most closely related to elements that symbolize the real world? A. node B. landmark c.metaphor IN D.
sergij07 [2.7K]

Answer:

landmark

Explanation:

6 0
3 years ago
Solve the equation w - 2 = -3<br><img src="https://tex.z-dn.net/?f=w%20%3D%20%20%20-%20%20%5Cfrac%7B3%7D%7B2%7D%20" id="TexFormu
Andreyy89
Heres my answer w= -1
4 0
3 years ago
All about wide area network<br>​
andreev551 [17]

Answer:

a wide area network is also known as (WAN) it is a large information that has been tied to more than a single location you can understand by the diagram shown you can think of it as a network sharing information around the world

6 0
3 years ago
Other questions:
  • What file format is best for photo editing? Select one: a. JPG b. RAW c. DOC d. RTF
    12·2 answers
  • A user is given Read permission to a file stored on an NTFS-formatted volume. The file is then moved to a different folder on a
    5·1 answer
  • If a computer file will not open, what should you do? A. Make sure you have the correct software to open it. B. Change the name
    9·1 answer
  • Which of the following can be considered beta testing? A programmer at Linus Systems checks the integration of multiple modules
    14·1 answer
  • A video game is begun by making selections from each of 3 menus. The first menu (number of players) has 4 selections, the second
    6·1 answer
  • A systems administrator is designing a directory architecture to support Linux servers using Lightweight Directory Access Protoc
    11·1 answer
  • Your company has purchased another company that also uses Windows Server 2016 and Active Directory. Both companies need to be ab
    11·1 answer
  • (I WILL GIVE BRAINLIEST) Which steps will delete an appointment?
    8·1 answer
  • What is a task that is not associated with loading existing data into a new ERP system.
    11·2 answers
  • How do I fix when it hits the second session it skips scanf..
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!