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
RoseWind [281]
2 years ago
8

This data will be used in program:

Computers and Technology
1 answer:
Elan Coil [88]2 years ago
4 0

Using the knowledge in computational language in JAVA it is possible to write a code that  Student class contains three instance data members first name, last name and gpa values.

<h3>Writting the code:</h3>

<em>Student.java</em>

<em>public class </em><em>Student </em>

<em>{</em>

<em> //instance variables </em>

<em> private String firstName;</em>

<em> private String lastName;</em>

<em> private double </em><em>valueGPA</em><em>;</em>

<em> </em>

<em> /*constructor */</em>

<em> public </em><em>Student</em><em>(String fN, String lN,double vGPA)</em>

<em> {</em>

<em>  firstName=fN;</em>

<em>  lastName=lN;</em>

<em>  valueGPA=vGPA;</em>

<em> }</em>

<em> </em>

<em> /*Method to return first name*/</em>

<em> public String getFirstName() </em>

<em> {</em>

<em>  return firstName;</em>

<em> }</em>

<em> /*Method to return last name*/</em>

<em> public String </em><em>getLastName</em><em>() </em>

<em> {</em>

<em>  return lastName;</em>

<em> }</em>

<em> /*Method to return gpa  value*/</em>

<em> public double getValueGPA() </em>

<em> {</em>

<em>  return valueGPA;</em>

<em> }</em>

<em> </em>

<em> //Override </em><em>toString</em><em> to return student object data</em>

<em> public String toString() </em>

<em> {</em>

<em>  return firstName+" "+lastName+" "+valueGPA;</em>

<em> }</em>

<em>}</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

You might be interested in
Was the big blue button thing a good decision or bad?<br> *I think it was a bad idea.
Gala2k [10]

sorry i just got banned so delete this answer plz i was banned and i wanted to see if they unbanned me

8 0
3 years ago
Read 2 more answers
Memory: 5 bit addresses Cache: 8 blocks All memory locations contain valid data If the memory location is 15. What is the Binary
VMariaS [17]

Answer:

see explaination

Explanation:

If the cache contains 2k blocks, then the data at memory address i would go to cache block index ( i mod 2k )

Memory address = 5 bit

Cache block = 23

So, if the memory location is 9, then binary address = 01001 and cache block = 9 % 8 = 1 = 001

if the memory location is 12, then binary address = 01100 and cache block = 12 % 8 = 4 = 100

if the memory location is 15, then binary address = 01111 and cache block = 15 % 8 = 7 = 111

6 0
3 years ago
10 points + brainliest to first correect answer :) incorrect answers/ answers with no effort will be deleted this is easy im jus
Gala2k [10]

Answer:

The first option is incorrect

Explanation:

With the Control+C method, you copy the text. With the Control+V method, you paste it. You do not remove any of the text and instead create a duplicate

6 0
3 years ago
Chip is examining data regarding the age at which people got married. He notices that in a number of cases people were reported
erastova [34]

Answer:

Data Cleaning

Explanation:

According to my research on data management, I can say that based on the information provided within the question what Chip is doing is an example of Data Cleaning. This term refers to the process of finding errors within sets of data and correcting or removing them from the set, or even the database entirely, this includes any data that may be inaccurate to completely wrong.

I hope this answered your question. If you have any more questions feel free to ask away at Brainly.

6 0
4 years ago
Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been enter
masya89 [10]

Answer:

size = int(input("How many names will be there? "))

names = []

for _ in range(0, size):

   name = input("Enter a name: ")

   names.append(name)

names.sort()

print(names[0] + " " + names[-1])

Explanation:

* The code is in Python

- Ask the user for the number of the name

- Initialize an empty list that will hold the name entered

- Inside the for loop, get the names and put them in the names array

- When all the names are entered, sort them and print the first and last of the name

8 0
3 years ago
Other questions:
  • What is the correct order of network types when categorized by their size or the physical area they cover, from largest to small
    5·1 answer
  • How will computing change our world?
    8·1 answer
  • The atmosphere can produce the same effects as a
    13·1 answer
  • Which of the following are valid values for a String? (Select all that apply)
    7·1 answer
  • Identify a characteristic of electronic meeting systems.
    10·1 answer
  • You created a database related to computer hardware parts and their details. You'd like to view the names of the parts in alphab
    9·1 answer
  • Which of these did the author use to create certain moods?
    6·1 answer
  • How do i mark brainliest?
    6·2 answers
  • Go follow me plz i would appreciate it
    12·2 answers
  • hello fellows i need a help.Ineed to know about computer evolutions and computer generations.please hurry.Its my rankover questi
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!