Construct a java program that performs given conversions

Assignment Help JAVA Programming
Reference no: EM131555242

Number System JAVA program Assignment

PROGRAM

Construct an object-oriented Java program that performs each of the following conversions. Note that we're only dealing with non-negative numbers.

• Converts a decimal integer into a 32-bit binary number
• Converts a decimal integer into an 8-digit hexadecimal number
• Converts a 32-bit binary number into a decimal integer
• Converts a 32-bit binary number into an 8-digit hexadecimal number
• Converts an 8-digit hexadecimal number into a decimal integer
• Converts an 8-digit hexadecimal number into a 32-bit binary number

Your program should be interactive, requiring the user to select the appropriate option from a menu of options (no GUI required). Note that Java's class will be very helpful reading data from the keyboard.

The conversions you code must be direct. In other words, if you had to convert a base 2 number into base 16, the conversion should be made directly from base 2 to base 16 and not from base 2 to base 10 to base 16. You may not use any methods or utilities from the Java library that do the conversions for you. such as
Integer. toBinaryString ( )
Integer. toHexString ( )

Your program should send all output to a file called csis.txt. This output file will be submitted along with your source code for the lab. All information displayed in the terminal window, including input from the user, should also be sent to the output file.

Instructions

Your program must send all output to csis.txt and this output file must be included in the zip archive that you submit. Note that your program output should be captured to the output file during program execution rather than cutting and pasting the output to the output file. Keep in mind that any dialogue the user has during program execution must also be included in the output file.

Place the following files into a folder and be sure to include only those files and folders I have requested:
-all .java source files required to build the project including all interface files
-csis.txt file containing all of the program's output
-doc folder that contains the Javadoc HTML comments
-any input files required to execute the program

Check Your Output

Before submitting your labs, check the output in your csis.txt file. Do the calculations by hand and confirm that your output is correct. If the output is not correct, go back and look at your code and find out why. If you cannot figure it out, ask questions. You should always have a good indication of the grade you will receive on the lab at the time you submit the lab. Note that you may submit a computer lab as many times as you wish before the due date. I will only look at your latest submission.

Reference no: EM131555242

Questions Cloud

Find an lu factorization of the matrices : Find an LU factorization of the matrices in (with L unit lower triangular). Note that MATLAB will usually produce a permuted LU factorization.
How does body language effect a conversation : How does body language effect a conversation, a job interview, a meeting or an oral presentation
Describe the communication methods applied : Describe the communication methods applied. Elaborate on a personal experience you have had with a network connection.
Average weight of the sample : A sample of 36 babies is selected. What is the probability that the average weight of the sample is less than 11.28 pounds?
Construct a java program that performs given conversions : Construct an object-oriented Java program that performs each of the following conversions. Note that we're only dealing with non-negative numbers.
How do you meet the needs of the learners : How do you explain special education to families of English learners? How do you meet the needs of the learners
Population proportion of drivers : Insurance companies are interested in knowing the population percent of drivers who always buckle up before riding in a car.
Discuss the size of a matrix in order to produce a formula : Find formulas for X, Y , and Z in terms of A, B, and C, and justify your calculations.
Investment project provides cash inflows : An investment project provides cash inflows of $1,275 per year for eight years. What is the project payback period if the initial cost is $4,100?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd