No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
[code]/*Imports Java library files*/ import javax.swing.JOptionPane; import java.text.*; /*Filename for programs class*/ class KwikKapers { /*Runs program- method*/ public static void main(String[] args) { KwikKapers optpane = new KwikKapers(); } /*Constructor*/ public KwikKapers() { /*Instruction to begin start menu method*/ Startmenu(); } /*Method for main start menu*/ public void Startmenu() … |
|
import javax.swing.JOptionPane; public class conversionweight { public conversionweight() { String ans; ans = JOptionPane.showInputDialog(null, "Enter Weight in Stone.Pounds" ); double stones = Double.parseDouble(ans); double pounds = 14 * stones; double kilos = 0.45359237 * pounds; JOptionPane.showMessageDialog(null, " weight in Kilos = " + kilos); System.exit(0); } } my task was … |