pa help naman po sa program ko. :((

PExer
write a program that will input a value of temperature in degree Celsius and convert the temperature in degree Fahrenheit and degree Kelvin.

Formula: Fahrenheit= (9/5)*Celsius +32
Kelvin = Celsius + 273

in addition, input also a value of temperature in Degree Fahrenheit and output its equivalent in
Degree Celsius
Formula: Celsius= 5/9*(Fahrenheit - 32)

pasagot naman po sa mga nakakaalam please nalilito talaga ako! :(((((((((((((((( huhuhuhu

• PExer
package com.test.converter;
import java.util.Scanner;

public class DegreeConverter
{
public static void main(String[] args)
{
System.out.print("Enter temperature in degree Celsius: ");
Scanner scanDegreeC = new Scanner(System.in);
double celcius = 0;
double fahrenheit = 0;
double kelvin = 0;

if (scanDegreeC.hasNextDouble())
{
celcius = scanDegreeC.nextDouble();
fahrenheit = (celcius * 9) / 5 + 32;
kelvin = celcius + 273;
}
System.out.println("Converted values.....");
System.out.println("Temperature in Fahrenheit is: " + fahrenheit);
System.out.println("Temperature in Kelvin is: " + kelvin);
}
}
• PExer
fix the code indentation yourself to make it readable. basically, java codes are indented based on the opening and closing braces.

as for the second problem, use the solution presented here. just change the formula. test yourself, madali lang yan.

get a beginners programming book for java. it's a must!
• PExer
whiplash wrote: »
fix the code indentation yourself to make it readable. basically, java codes are indented based on the opening and closing braces.

as for the second problem, use the solution presented here. just change the formula. test yourself, madali lang yan.

get a beginners programming book for java. it's a must!

thank you thank you po talaga!! sorry po sa abala nahihirapan po kase talaga ako eh pero im trying my best para maintindihan scanner lang po kase alam ko gamitin sa conditional statements. :(((( huhuhu thank you po.
• PEx Influencer ⭐⭐⭐
You should ask your professor what book he is using in reference to this problem. For sure galing lang din sa book yan. If so, you should get that book para masundan mo yung mga tinuturo nya.

Simpleng if/else pa lang, pano pa kung Methods, Arrays, Inheritance, OOP etc na ang lesson nyo? :shrug: Mahihirapan ka ng walang book!
• PExer
kaya nga po eh. nasanay kase kami na may guides lang i mean may kokopyahin mo lang yung codes tapos detect mo lang yung errors :( huhuhuhu hirap talaga. pero nakita ko naman nag search ako sa net 1k yung libro medyo may kamahalan pero gagawa ako paraan. salamat po
• PEx Rookie ⭐
kaya nga po eh. nasanay kase kami na may guides lang i mean may kokopyahin mo lang yung codes tapos detect mo lang yung errors :( huhuhuhu hirap talaga. pero nakita ko naman nag search ako sa net 1k yung libro medyo may kamahalan pero gagawa ako paraan. salamat po

Bakit mo prinoproblema ang libro, required ba sa class mo? If not, don't buy one. Internet is at your disposal. It was actually surprising na dito ka pa nagtanong at hindi kay google.

Hindi ka matututo kung puro basa ka lang ng guides. Learn the basics of programming then practice on your own. Goodluck.
• PEx Influencer ⭐⭐⭐
I have a good Java pdf book. I could send it to you but I can't think of any other way besides using email. It's too big too have it as an attachment... if you know a way let me know..
• PExer
I have a good Java pdf book. I could send it to you but I can't think of any other way besides using email. It's too big too have it as an attachment... if you know a way let me know..

kuya taga saan ka po ba? gusto ko bumili ng libro kaso may kamahalan kase eh.
• PExer
Bakit mo prinoproblema ang libro, required ba sa class mo? If not, don't buy one. Internet is at your disposal. It was actually surprising na dito ka pa nagtanong at hindi kay google.

Hindi ka matututo kung puro basa ka lang ng guides. Learn the basics of programming then practice on your own. Goodluck.

naghahanap po ako ng libro para po may basehan ako, sa internet po kase hindi ko siya masundan ng maayos gusto ko yung binabasa ko siya then isosolve ko on my own, thanks po.