question archive Modify the program you created above (Hello_Ashford) to add three test scores and find the average

Modify the program you created above (Hello_Ashford) to add three test scores and find the average

Subject:Computer SciencePrice:3.87 Bought7

Modify the program you created above (Hello_Ashford) to add three test scores and find the average. Use the PRINTLN to display your name, the scores and average.

Review

Primitive Data Type

  • byte (number, 1 byte)
  • short (number, 2 bytes)
  • int (number, 4 bytes)
  • long (number, 8 bytes)
  • float (float number, 4 bytes)
  • double (float number, 8 bytes)
  • char (a character, 2 bytes)
  • boolean (true or false, 1 byte)

Week1 Lab1 Simple JAVA Program

Delete System.out.println( "Hello Ashford Student.....")

Replace with:

String name = "enter your name here";

double Score1 = enter a test score between 1 and 100 here;

double Score2 = enter a test score between 1 and 100 here;

double Score3 = enter a test score between 1 and 100 here;

double Average = ( Score1 + Score2 + Score3)/3;

//now you are ready to print

System.out.println (name);

System.out.println (Score1);

System.out.println (Score2);

System.out.println (Score3);

System.out.println (Average);

 

Option 1

Low Cost Option
Download this past answer in few clicks

3.87 USD

PURCHASE SOLUTION

Option 2

Custom new solution created by our subject matter experts

GET A QUOTE

rated 5 stars

Purchased 7 times

Completion Status 100%

Related Questions