Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Apply print f and for loop to the program. Please submit the design, source code (java file) & output (This is the java program, down

Apply print f and for loop to the program.

Please submit the design, source code (java file) & output

(This is the java program, down below)

import java.util.Scanner;

public class ThreeTestScoresLab { public static void main(String[] args) { double score1, score2, score3, Average = 0; //adding a printf System.out.printf(\"%.2f/n\", \"Hello\"); //Adding loops for(int i = 0; i { //Scores String First_name ; char Middle_Initial ; String Last_Name ; double Score1 ; double Score2 ; double Score3 ; double average = 0 ; //Asking for the student's test scores String First_Name, last_Name; char MI; Scanner key_B = new Scanner(System.in); System.out.println(\"Please enter your first Test score \"); score1 = key_B.nextDouble(); System.out.println(\"Please enter your second Test score \"); score2 = key_B.nextDouble(); System.out.println(\"Please enter your third Test score \"); score3 = key_B.nextDouble(); //Here to skip a line key_B.nextLine(); //Asking for the student's First Name, Middle Initial and Last Name System.out.println(\"Please enter your first Name \"); First_Name=key_B.nextLine(); key_B.nextLine(); System.out.println(\"Please enter your middle Initial \"); Middle_Initial=key_B.next().charAt(0); key_B.nextLine(); System.out.println(\"Please enter your last Name \"); Last_Name=key_B.nextLine(); //computing the average scores average = (score1 + score2 + score3)/3.0; //Displaying all of the input values and the average System.out.println(\"Score1 = \" + score1); System.out.println(\"Score2 = \" + score2); System.out.println(\"Score3 = \" + score3); System.out.println(\"Average = \" + average); System.out.println(\"First Name: \" + First_Name); System.out.println(\"Middle Initial: \" + Middle_Initial); System.out.println(\"Last Name: \" + Last_Name); } } }

Q67

Businesses are most likely to choose cloud services when they want similar control over software deployment and data management that they have with on premises systems.

A) software as a service (SaaS)

B) infrastructure as a service (IaaS)

C) platform as a service (PaaS)

D) virtual private network (VPN) no

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Java Programming, Comprehensive Version

Authors: Y. Daniel Liang

10th Edition

133761312, 978-0133761313

More Books

Students also viewed these Programming questions

Question

Briefly explain at least five different ways of assessing truth.

Answered: 1 week ago