1. Engineering
  2. Computer Science
  3. i started the program but got stuck when it came...

Question: i started the program but got stuck when it came...

Question details

I started the program but got stuck when it came to the conversion part.

You entered: c and 4.5 47.5 C-117.5 F (4) If the char is not F, f, C, or ,output error message.(1 pts) Enter a character and a number: a 17.5 You entered a and 47.5 a is irvalid input ACTWTY 14.2.1: Prog 2- Temp Conversion (selection) 010 Prog2_TempConversion_selection.java Load default template.. ior java.util.Scanner: 0 public class Prog2 TenpConversion selection i public static void nzin(string args) String str char Scanner input - new Scanner Systen.in) 15 Part 1 System.out.printin( Enter a character and a nuber:) -input.next().charat() str input.nextline) Systcm.out.println You entered:: Systen.out-printincnd input.next(O Part 2 System . out.print in( . Enter a character and เป็ nunbar :); c-input.next charat(ay tr input.nextine 25 Run your program as often as youd like, before submitting for grading. Below, type any needed Develop mode Submit mode Run program 1:01 PM 1/30/2019 O Type here to search i e ^ 뷸 d×

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution