Question: Normal No Spacing Headi This is your task for this discussion: Please come up with a formula you like ('is there such thing?) and write

 Normal No Spacing Headi This is your task for this discussion:

Normal No Spacing Headi This is your task for this discussion: Please come up with a formula you like ('is there such thing?") and write a small piece of code to calculate it. You must decide what type of variables you need, what are their values, and you need to express the formula using assignments in correct Java syntax. Use the compiler to verify that your program works. Let me give you an example: To calculate the average of two grades I could do the following inside the main method in a class: Scanner stdln- new ScannerSystem.in double grade1; double grade2; double average; System.out.printio("Give me the first grade:"); grade?stdIn.nextDouble0: System.out.printin("Give me the second grade: grade2 - stdio.nextDouble0 average (grade1+grade2/2.0; You have to write all required code with correct Java Syntax. Write the whole code in TextPad and test it with the compiler before posting. As a proof that your program compiles and run, you must also show a screen capture of the program running. d States) 18,577 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!