Homework Help


How do you convert 5/16 to a decimal related questions

  • 1Convert a decimal format number with decimal to binary

    I don't just want an answer, can you PLEASE show details of the conversion? NEED DETAILS AND WORK for 5-star83.132

  • 2Convert decimal to binary. Show me how to convert?

    73200 00010001110111110000 11DF0

  • 3Write a program that will convert Decimal to Binary, and Binary to Decimal

    I need a GUI in Java that will take Binary to Decimal and vice versa.Pretty much I need help with getting the user input in the GUI so that I can actually convert.And if anyone can help me with the algorithm for the Binary to Decimal conversion, that would be AWESOME!Code so far:import javax.swing.JLabel;import javax.swing.JButton;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JTextArea;import java.awt.Color;import java.awt.Container;import java.awt.BorderLayout;import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;public class Converter extends JFrame implements ActionListener{public static final int WIDTH = 500;public static final int HEIGHT = 300;public static final int LINES = 1, OTHERLINE = 1;public static final int CHAR_PER_LINE = 40;private JTextArea theText;public Convert( ){setSize(WIDTH, HEIGHT);addWindowListener(new WindowDestroyer( ));setTitle("Binary/Decimal Number Converter");Container contentPane = getContentPane( );contentPane.setLayout(new BorderLayout());JPanel buttonPanel = new JPanel( );buttonPanel.setBackground(Color.BLUE);buttonPanel.setLayout(new FlowLayout( ));JButton memo1Button = new JButton("To Base 10");memo1Button.addActionListener(this);buttonPanel.add(memo1Button);JButton get2Button = new JButton("To Base 2");get2Button.addActionListener(this);buttonPanel.add(get2Button);JButton clearButton = new JButton("Clear");clearButton.addActionListener(this);buttonPanel.add(clearButton);JButton get3Button = new JButton("Exit");get3Button.addActionListener(this);buttonPanel.add(get3Button);contentPane.add(buttonPanel, BorderLayout.SOUTH);JPanel textPanel = new JPanel( );textPanel.setBackground(Color.GREEN);JLabel myLabel = new JLabel("Binary number"); // work on thistextPanel.add(myLabel);theText = new JTextArea(LINES, CHAR_PER_LINE);theText.setBackground(Color.WHITE);textPanel.add(theText);contentPane.add(textPanel, BorderLayout.CENTER);JLabel otherLabel = new JLabel("Decimal"); // work on thistextPanel.add(otherLabel);theText = new JTextArea(OTHERLINE, CHAR_PER_LINE);theText.setBackground(Color.WHITE);textPanel.add(theText);contentPane.add(textPanel, BorderLayout.CENTER);}public void actionPerformed(ActionEvent e){String actionCommand = e.getActionCommand( );if (actionCommand.equals("To Base 10")){// insert algorithm here}else if (actionCommand.equals("To Base 2")){DecimalToBinary(int n);}else if (actionCommand.equals("Clear")){theText.setText("");}else if (actionCommand.equals("Exit")){System.exit(0);}}public static void main(String[] args){MemoSaver guiMemo = new MemoSaver( );guiMemo.setVisible(true);}public void DecimalToBinary(int n){if (n >= 1){theText.setText(n % 2);}elseDecimalToBinary(n/2);}}

  • 4Convert 0.09% to a decimal

    Convert 0.09% to a decimal.

  • 5how do you convert 13/25 into a decimal

    how do you convert 13/25 into a decimal?

  • 6How do you convert 5/16 to a decimal

    How do you convert 5/16 to a decimal??

  • 7convert 0.49% to a decimal

    convert 0.49% to a decimal

  • 8how to convert 2/3 into a decimal

    how to convert 2/3 into a decimal

  • 9Convert to decimal notation 8.49 x 10^7

    Convert to decimal notation 8.49 x 10^7

  • 10How do I convert a decimal to a fraction

    How do I convert a decimal to a fraction. .350My answer: 350/100

  • 11Convert to decimal notation

    Convert to decimal notation.2/3

  • 12Convert the decimal to a fraction

    Convert the decimal to a fraction .25