subject

Suppose that the variables grade1, grade2, and grade3 are declared as follows: int grade1 = 88; int grade2 = 92; int grade3 = 83; which of these expressions correctly calculates the average of grade1, grade2, and grade3? a. (grade1 + grade2 + grade3) / 3 b. (grade1 + grade2 + grade3) / 3.0 c. ( + grade2 + grade3) / 3) d. (double)grade1 + grade2 + grade3 / 3.0 e. (double)grade1 + (double)grade2 + (double)grade3 / 3.0

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
All of the following are characteristics that must be contained in any knowledge representation scheme except
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Could you find out how im still getting an 83 percent on this in edhesive a = input("enter an animal: ") s = input ("enter a sound: ") e = "e-i-e-i-o" print ("old macdonald had a farm, " + e) print ("and on his farm he had a " + a + "," + e) print ("with a " + s + "-" + s + " here and a " + s + "-" + s + " there") print ("here a " + s+ " there a " + s) print ("everywhere a " + s + "-" + s ) print ("old macdonald had a farm, " + e)
Answers: 2
question
Computers and Technology, 25.06.2019 03:10
Write a program to convert a person's height in inches into centimetres #and their weight in stones into kilograms. (1 inch = 2.54 cm and 1 stone = 6.364 kg)
Answers: 1
question
Computers and Technology, 25.06.2019 08:10
What refrigerant has been approved for new household refrigerators and freezers
Answers: 1
You know the right answer?
Suppose that the variables grade1, grade2, and grade3 are declared as follows: int grade1 = 88; in...
Questions
question
Mathematics, 14.01.2020 02:31
Questions on the website: 13722367