How many instance variables does this class contain

Assignment Help Computer Engineering
Reference no: EM132138029

/** A student who is taking quizzes. */ public class Student { private String name; private double totalScore; private int quizCount; public Student (String n) { name = n; totalScore = 0; quizCount = 0; } public String getName() } return name; } public void addQuiz)int score) { totalScore = totalScore + score; quizCount = quizCount + 1; } public double getToalScore() { return totalScore; } public double getAverageScore() { return totalScore / quizCount: } }

Questions needing answering related to this code:

1) How many instance variables does this class contain?

2) Which variable in the constructor is being updated by a parameter?

3) How many methods are there in this class

4) How many methods are 'mutators'?

5) What do you think the primary purpose is of this class?

6) Write the java method call that would add a quiz score of 95?

7) Which methods do/does not return a value?

8) If we wanted each score to count two times, which method needs to be modified?

9) Can quiz scores with decimals be entered?

Reference no: EM132138029

Questions Cloud

Find the probability that the sample mean : Suppose that a random sample of 40 college science textbooks was taken. Find the probability that the sample mean is more than 235 dollars.
What is the probability of getting exactly : If you are tossing a fair coin 10 times, what is the probability of getting exactly 9 heads out of the 10 coin tosses?
Undertaking expansionary fiscal policy : The government is undertaking expansionary fiscal policy. Illustrate how this action affects:
Why does a government undertakes expansionary fiscal policy : Why does a government undertakes expansionary fiscal policy? What are the problems of undertaking expansionary fiscal policy?
How many instance variables does this class contain : How many instance variables does this class contain? Which variable in the constructor is being updated by a parameter?
What is the role of local government leadership : What is the role of local government leadership in assuring that departments and divisions work together to achieve municipal goals and objectives?
Percent of lumber from the three suppliers : What is the percent of clear lumber from each of the three suppliers? What is the percent of lumber from each of the three suppliers.
What is stuxnet and what are its real-world implications : Should your national government be concerned about the potential of a Stuxnet-like attack? Why or why not.
Minimum long run average total cost : The industry is currently at a long-run equilibrium, with each firm producing at its minimum long run average total cost of $8.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Computer games long terms effects are disastrous

Computer games as much as it can be argued that they are of benefit to the human race by educating them or helping them socialize, their long terms effects are disastrous. This is so since they can make the people strain later in life to see and m..

  Prepare an html document that describes an ordered list

Prepare and test an HTML document that describes an ordered list with the following contents: The highest level should be the names of your parents.

  Questionto recover the overall functionality and good

questionto recover the overall functionality and good organization of your product ordering java application you are

  Why is it especially important to verify

Why is it so important to verify and control project scope in IT projects? What is recommended for IT project managers to do to verify and control scope? Why?

  Implement a calculator for a client-server architecture

Implement a calculator for a client-server architecture using socket communication between the client and the server.

  Elements of the it project plan and the critical duties of

create a word document of it projectbe sure to cite the textbook and any outside sources used. the title page should

  Design an online modified version of the game tic-tac-toe

The Modified Tic-Tac-Toc Game- Design and implement an online modified version of the game Tic-Tac-Toe using Internet domain sockets.

  Write annotated summary of each article

Review at least 4 articles on Balanced Scorecard. Write annotated summary of each article. Use APA throughout.

  How to administer the paging to minimize m is an important

The basic model for this is that there are two levels, a large but slow-access main memory, and a small but fast-access memory called the cache.

  Explain the synthesis of guar gum

Explain the synthesis of guar gum - Explain the life cycle and environmental impact of guar gum

  Write a program to evaluate polynomials using homers method

Write a program to evaluate polynomials using Homer's method, where the polynomials are represented with linked lists.

  Write a program that can be used to convert meters to feet

Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd