In this video, an exam weightage calculator is created in Netbeans IDE, as the requirements of this program are described below:
(Turn on caption for detail)
Program Name: Temperature
In this task, you are being asked to write a program that converts temperature to Fahrenheit or Centigrade.
1. Create a program called Temperature.java having the main() part.
2. Create a variable called tempCentigrade, and another called tempFahrenheit, both of type double.
3. Assign a value 68.5 to tempFahrenheit and -273.15 to tempCentigrade.
4. Now, you need to convert the value stored in tempCentigrade to Fahrenheit, and the value stored in tempFahrenheit to Centigrade.
5. Use the following two formulae to convert the Centigrade to Fahrenheit, and vice versa:
T(°C) = (T(°F) - 32) × 5/9
T(°F) = T(°C) × 9/5 + 32
6. Print the converted temperatures by giving appropriate messages.
.
.
If you need any help in java programs then contact me through the email given below:
crazy.programming.life@gmail.com
.
Don't forget to subscribe to "Crazy Programming" and do like and comment the video.
.
.
Thanks for watching.
Sur cette page du site, vous pouvez voir la vidéo en ligne Temperature Calculator in JAVA || Writing Correct Expressions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Crazy Programming 03 mai 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 35 fois et il a aimé 6 téléspectateurs. Bon visionnage!