Write a program in Java that asks the user to enter four weighted assessment grades, calculate the average, then display the average with the message: "Student Pass" if the average is greater than or equal 60 or the message "Student Fail" otherwise. The details of the assessments and weights are as follow: Homeworks: 20% Labs: 15% Midterm: 25% Final: 40%

Answers

Answer 1

Answer:

Explanation:

In order to calculate the weighted average, the grade itself is multiplied by the percentage of the category and then these values are summed. This sum is then divided by the total percentage of the portfolio.

import java.util.Scanner;

class Main {

   public static void main(String[] args) {

       double sumOfWeights = 100;

       

       

       Scanner in = new Scanner(System.in);

       

       System.out.println("Please Enter Homework Grade: ");

       double homework = in.nextDouble() * 20;

       System.out.println("Please Enter Labs Grade: ");

       double labs = in.nextDouble() * 15;

       System.out.println("Please Enter Midterm Grade: ");

       double midterm = in.nextDouble() * 25;

       System.out.println("Please Enter Final Grade: ");

       double finals = in.nextDouble() * 40;

       

       double average = (homework + labs + midterm + finals) / sumOfWeights;

       System.out.println("The Average of these Weighted Grades is " + average);

   }

   

}


Related Questions

what is computer memory measured in​

Answers

Answer:

MB I think I learned it actually.

Explanation:

x = 0
while x < 4:
print(x)
x += 1
Make it a for loop

Answers

Answer: Here you go :)

Explanation:

x = 0

for n in range(4):

  print(x)

Examples of system software include operating systems like macos, Linux, Android and
Microsoft Windows, computational science software, game engines, industrial automation, and
software as a service applications
True
False

Answers

Tru tru tru tru tru tru

Fill in the blank to make the following true.
2 ** 3 =

Answers

Answer:

2 ** 3 = 8

Explanation:

Answer:

8

Explanation:

Write an advert to recruit teachers for a given Senior High School. The advert should cover tittle, job description, employees specifications, mode of application condition of service, closing date

Answers

Answer:

Hey! Have you ever wanted to work with kids? Do you know a lot about mathematics? Well I've got the job for you! You can be a Senior High School teacher! The job is simple, all you have to do is teach your students about mathematics every day. Let us know by July 31st if you would like to be a teacher for this upcoming fall semester.

Explanation:

What is the velocity of a 0.100kg car with a momentum of 5 kgm/s?

Answers

Answer:

v = 50 m/s

Explanation:

p = mv

5 = 0.1v

v = 50

write 3 things that can't be done without technology. write your opinion?

Answers

Answer: Call a theater to get movie times, Use a phone book to find a company to do work around your house, and Park your used car on the street with a sign that says it’s for sale.

Explanation: my opinion is that it's fine to do each of those things without technology. Because technology is supposed to help the limited capacity of the human brain and improve things that make every day life quicker, easier, leaves more time to do something else.

Answer:

1) Filming, depending on the camera it is still technology that everyone uses on a daily bases with no hesitation for use.

2) Vehicles, I'm not sure if they are a type of technology but for this case lets just say they are. With vehicles we can get to places much faster then walking or taking a carriage.

3)Records, in this case music. Without records or anything of the sort we wouldn't exactly be able to listen to our favorite music at all times.


8. (a) Identify two advantages and four limitations of the Speech recognition devices.

Answers

Explanation:

Speech recognition technology allows computers to take spoken audio, interpret it and generate text from it

Other Questions
How much thermal energy is absorbed when 145 g of water at 23C is heated until it boils and turns into vapour? Clarissa has a budget of $1,200 a month to spend for rent and food. She has already spent $928 this month. Which inequality represents the amount she can still spend this month and remain within her budget?x greater-than 272x less-than-or-equal-to 272x less-than 272x greater-than-or-equal-to 272 How far did the Assyrian Empire reach at its height? What is the equation of this line?Write the equation in slope-intercept form. HELP ASAPP!!!! PLZZZ Which is the following is an example of liquid surface water?A zone of saturationB) aquiferC) lake GIVING BRAINLIEST!!!!!Jefferson also wanted to obtain the Port of New Orleans at the mouth of the Mississippi River so farmers could transport their goods.A) Jefferson also wanted to obtain the Port of New Orleans at the mouth of the Mississippi River so farmers could transport their goods.B) The Mississippi River and the Port of New Orleans were very important for people to be able to travel in the U.S.C) The president wished for farmers to float their products down the Mississippi River to the Port of New Orleans. WILL GIVE BRAINLIEST Chinese, I need help please ASAP!! Does anyone know this cause I need to understand how to do this. explain demand of money What are the different approaches to foreign policy? True or False: If two parallel lines are cut by a transversal, each pair of supplementary angles are congruent A 34-foot tall utility pole is supported by two wires that are anchored 8feet from the base of the pole.how many feet of wire is needed for the support wires? What is the value of the expression. (-8+4)- (3-9) HELP ME PLEASEE !!!!! Someone pls help this is for my presentation about Tornados..What is the temperature like before, during, and after your extreme type of weather?I literally dont know what to put so someone plss help it would rlly mean the world to me Harish runs on a straight path with the velocity of 16 m/s . How long distance will he cover in 2 minutes ? If you could help me please.1) Does a 1 kg object weight 9.8 newtons on the moon? why?2) How much does a 3-kg object weigh (on earth) in newtons?3) How much does a 20-kg object weigh (on earth) in newton?4) What must happen for the mass of an object to change?5) What are 2 ways the weight of an object can change? please help!!! and show work!!