Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i have been doing this for multiple times but i keep getting 66%. i am incomplete for the result. please take a look at my

i have been doing this for multiple times but i keep getting 66%. i am incomplete for the result. please take a look at my code. thanks. image text in transcribed
image text in transcribed
Instructions > Terminal QuartsToGallans.java 1 public class QuartsToGaltons.java 2 public static void main(string args) { 3 final int QUARTS_IN_GALLON 45 5 > int quarts Needed18 int quarts - 2 Write a program that declares a constant named QUARTS_IN_GALLON which holds the number of quarts in a gallon (4). Also declare a variable named quartsneeded to represent the number of quarts needed for a painting job, and assign an appropriate value. Compute and display the number of gallons and quarts needed for the job. Display explanatory text with the values--for example, A job that needs 18 quarts requires 4 gallons plus 2 quarts sandbox S.mn of ..class sandbox $ sandbox $ sandbox $ Bavac Quartstogallons. Jav a Quartstogallons.java:1: error:'( expected public class Quartstogallons.fava ( 1 error Sandbox 5 Java QuartsTogallons Error: Could not find or load nain class Quartstogallons sandbok SO System.out.println("A job that needs quarts Needed"quarts required" + gallonsNeeded/QUARTS_IN_GALLON"gallons plus". quartsNeeded AQUARTS_IN_GALLON "quarts"); 19 10) When submitting the program for testing/grading, assign the value 18 to quart Needed Checks required" quartsNee 9 10 } 11 Test Case Incomplete

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago