The temperature of steel in degrees Celsius is read from input into integer variable degreeVal. If...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The temperature of steel in degrees Celsius is read from input into integer variable degreeVal. If degreeVal is: • <1461 degrees Celsius, output "Steel: solid state". • >1461 degrees Celsius and <2501 degrees Celsius, output "Steel: liquid state". Otherwise, output "Steel: gaseous state". End the output with a newline. ►Click here for examples Note: Use implicit ranges to simplify the solution. 1 import java.util.Scanner; 2 3 public class SteelStates { 4 public static void main(String[] args) { 5 6 7 8 9 10 11 12 13 } } Scanner scnr = new Scanner(System.in); int degreeVal; degreeVal scnr.nextInt(); *Your code goes here */ = The temperature of steel in degrees Celsius is read from input into integer variable degreeVal. If degreeVal is: • <1461 degrees Celsius, output "Steel: solid state". • >1461 degrees Celsius and <2501 degrees Celsius, output "Steel: liquid state". Otherwise, output "Steel: gaseous state". End the output with a newline. ►Click here for examples Note: Use implicit ranges to simplify the solution. 1 import java.util.Scanner; 2 3 public class SteelStates { 4 public static void main(String[] args) { 5 6 7 8 9 10 11 12 13 } } Scanner scnr = new Scanner(System.in); int degreeVal; degreeVal scnr.nextInt(); *Your code goes here */ =
Expert Answer:
Answer rating: 100% (QA)
import javautilScanner public class SteelStates public stati... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
What is the purpose of assistive equipment and their associated systems?
-
Executives at Southwestern Construction have noticed that the company's construction team in the Phoenix office is more efficient with its resources than the other teams in the Las Vegas, Salt Lake,...
-
On Wednesday, February 18, Jim Elsey, cost management specialist at Deere & Company in Moline, Illinois, received a call from Glen Lowery, sales manager in the Agricultural Products Division: Jim, I...
-
How much money would a man have to deposit each year for 6 years starting 4 years from now if he wanted to have $12,000 eighteen years from now? Assume the interest rate is 12% per year?
-
In Fig P2.15 all fluids are at 20C. Gage A reads 15 lbf/in2 absolute and gage B reads 1.25 lbf/in2 less than gage C. Compute (a) The specific weight of the oil; and (b) The actual reading of gage C...
-
During the fourth quarter of 20X6, Cablevision, Inc., generated excess cash, which the company invested in securities, as follows: Required 1. Prepare T-accounts for: Cash, balance of $20,000;...
-
A water jet pump (see Fig. P5.17) involves a jet cross-sectional area of \(0.01 \mathrm{~m}^{2}\), and a jet velocity of \(30 \mathrm{~m} / \mathrm{s}\). The jet is surrounded by entrained water. The...
-
What are the major SWOTs at COMPTECH? Use information from the chapter to determine the internal issues that will need attention. Review recent business trends in the retail computer sales sector and...
-
Piedmont Company segments its business into two regions-North and South. The company prepared the contribution format segmented income statement as shown: Sales Variable expenses Contribution margin...
-
As a preliminary to requesting budget estimates of sales, costs, and expenses for the fiscal year beginning January 1, 20Y9, the following tentative trial balance as of December 31, 20Y8, is prepared...
-
Quilcene Oysteria farms and sells oysters in the Pacific Northwest. The company harvested and sold 7,500 pounds of oysters in August. The company's flexible budget for August appears below: Quilcene...
-
Identify 1 intentional teaching strategy you could incorporate into you program to promote creativity related to your chosen NQS element. Identify 1 regulation that you would be guided by during the...
-
10. You are renting a storage warehouse for 6 years. The rent is $6,000 per year payable at the beginning of each year. You want to set aside the money necessary to meet these payments. If the money...
-
Code a nested loop program that will generate a multiplication table, but instead of creating a simple 10 by 10 multiplication table, the program allows the user to type in two numbers (beginning and...
-
Set Up 1. Make a new main class called IA4_ParallelBubbleSort_LastName.java. 2. Copy an applicable sort method from a previous assignment and then alter it to take in a String Array for sorting plus...
-
A. State whether each of the following vector fields could describe a static electric field? Show your reasoning for each. (i) E(r) = xx yu (ii) E(F) = yx + xy (iii) E(7) = yx - xy B. Calculate the...
-
Rachel's Recreation Center purchased an asset for $240,000 that has $30,000 residual value and a seven-year life. Rachel's effective income tax rate is 40 percent, and Rachel uses the straight-line...
-
A non-charmed baryon has strangeness S = 2 and electric charge Q = 0. What are the possible values of its isospin I and of its third component I z ? What is it usually called if I = 1/2?
-
Draw a flowchart that corresponds to Exercise 34. Data from Exercise 34 Write a program segment that inputs Age and displays "You are too young to vote" if Age is less than 18 (and displays nothing...
-
Redo Programming Challenge 4 but sort by Scores. Sort the Scores in ascending order, keeping the Player array parallel. To get your column data to line up as shown, you can use the tab indicator, /t,...
-
Which of the following pairs were the founders of Microsoft Corporation? a. John Mauchly and J. Presper Eckert b. Steven Jobs and Stephen Wozniak c. Bill Gates and Paul Allen d. Richard Rodgers and...
-
A \(15.0-\mathrm{kg}\) block measures \(0.750 \mathrm{~m}\) top to bottom, and each horizontal face has an area of \(0.0125 \mathrm{~m}^{2}\). The block hangs, with its long central axis vertical,...
-
A hydrogen-filled balloon is used to lift a \(125-\mathrm{kg}\) stone off the ground. The basket holding the stone has a mass of \(15.0 \mathrm{~kg}\). What must the minimum radius \(R\) of the...
-
At an atmospheric pressure of \(1.00 \mathrm{~atm}\), the height of the liquid in the tube of a mercury barometer is \(760 \mathrm{~mm}\) only if you ignore capillary rise in the tube. Obtain an...
Study smarter with the SolutionInn App