Question: /* Put your header here! Refer to the First Submission header. In this program, we will put comments in your code too. TODO: Place a
/* Put your header here! Refer to the First Submission header. In this program, we will put comments in your code too. TODO: Place a comment here about the following block of code TODO: Add the input for the scanner here
*(*)/());\ System.out.print ("Enter four doubles
(a**b-c+d):;\
a=s. nextDouble ();\
b=5. nextDouble();\ I* TODO: Get the next double and put it into
cTODO: Place a comment here about the following block of code TODO: Output the data as "a*
a-c+d=result".\ See example for output.\ */\ }.\ }

/ Put your header here! Refer to the First Submission header. */ / In this program, we will put comments in your code too. */ import java.util.Scanner; class Equation \{ public static void main(String[] args) \{ double a; double b; double c; double d; /* TODO: Place a comment here about the following block of code */ Scanner s= new Scanner (/* TODO: Add the input for the scanner here */); System.out.print ("Enter four doubles (abc+d):"); a=s.nextDouble (); b=5. nextDouble (); /* TODO: Get the next double and put it into c */ f TODO: Get the next double and put it into d/ s. close(); /* TODO: Place a comment here about the following block of code */ double result =/ TODO: Calculate abc+d/ I* TODO: Output the data as "a* bc+d= result". See example for output. */ 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
