1. Engineering
  2. Computer Science
  3. zy 141 prog 1 input amp output a...

Question: zy 141 prog 1 input amp output a...

Question details

zy 14.1. Prog 1: Input & Output × 흐 a Using scannern tím < Ch 2 Conditional Probability × Courses Blackboard Lca zy Hom M/H Ohtlpsflean.zybooks.com/cybook/VSUINGR204GarciaOteroSpring2019/chapler/14/section/2 90% ☆ zyBooks My library ENGR 204 Intro to Object Oriented Pragr home 142: Prog 2 - Temp Conversion (selection) e7yBonks catalaa @ Help/FAQ θ Daquante Martin 14.2 Prog 2 - Temp Conversion (selection) Write a program to input a character and a number. If the charis F or f, convert the number to Celsius using the formula below. If the char isでorc. oonvert the number to Fahrenheit. If the char is not F,f.で.or ℃. output error message. Formula for the temperature conversion (pay attention to int and double C (F-32) 5/9 1) Input and out a character and a number (1 pts) Enter a character and a mumber F 47.5 You cntored F and 47.5 (2) If the character is T. or f·convert the number to Celsius (format the output to 1 decimer pt) (4 pts) Enter a charactar and a number F 17.5 You eitered: arnd 47.5 47.5 F-8.6 C (3) If the character is Corc, convert the number to Fahrenheit (format the output to 1 decimer pt) (4 pts) С 47.5 You entered: and 47.5 47.5 C117.5 F 4:30 IM O Type here to search rP ︿.x 1/25/2019zy 14.1. Prog 1: Input & Output × 흐 a Using scannern tím < Ch 2 Conditional Probability × Courses Blackboard Lca zy Hom M/H Ohtlpsflean.zybooks.com/cybook/VSUINGR204GarciaOteroSpring2019/chapler/14/section/2 90% zyBookS My library > FNGR 204 Intro to Ohject Oriented Prnar home > 14 2: Prog 2 . Temp Conversion (selection) e 7yBonks catalaa @ Help/FAQ θ Daquante Martin ▼ (4) If the chur is not T. T. C, ore. output error message.(1 pts) Enter a character and a number a 17.5 Yau eritered: a and 47.5 d is invalid inpuL ACTVITY 14.2.1: Prog 2 - Temp Conversian (selecticn) 0/10 Prog3_SumpositiveNumbers.java Load default template... 2 The progran is to input real nurbers, print the nurters user entered, and the sun of ฮ11 the positive numbers. b inpurt jas.util.Scanner; u public class Prog Sunpositivetunbers public static void rein(String[] args) { Type your code here Submit mode Rur your progra as ofter as youd like, beo subilting for grading. Below, lype any needed Develop mode input values in the first box, then click Run program and observe the programs ourput in the second box Enter program input (optional) If your code requires input values, provide them here 4:31 PM O Type here to search rP ︿.x 1/25/2019

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