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

  Find the slight error in givne code

This is my code and it has a slight error, can someone fix this code for me. I need it to compile. Please fix whatever error is within this code

  Design and implement a java program to determine the sum

Design and implement a Java program that will gather a group of floating point numbers and determine the sum and average of the data entered. The program should use separate methods for inputting the data, calculating the sum, calculating the aver..

  Techniques used to secure web servers

Two of the most popular web servers are Apache and Microsoft IIS. Discuss some of the tools and techniques used to secure these web servers.

  Design a method in a stack implementation

Design a method in a Stack implementation that allows the user to insert a new member to the "bottom" of a stack.

  Define the kernel mode in operating system

Define the kernel mode in operating system

  Prepare a demo program

Design, and implement a class that will be used in a program that simulates a combination lock. The lock has a circular knob with the numbers 0 through 39 marked on the edge, and it has a three-number combination, which we will call x,y,z.

  Write a while loop that lets the user enter a number

1) Write a while loop that lets the user enter a number. The number should then be multiplied by 10, and stored in a variable called product. The loop should then iterate as long as product contains a value less than 100.

  Write a program that can be used to gather statistical data

Write a program that can be used to gather statistical data about the number of movies college students see in a month. The program should ask the user how many students were surveyed and dynamically allocate an array of that size

  Calculate the square footage of a house

You have begun work at a realty office. You have been asked to develop a program that helps realtors calculate the square footage of a house based on measurements of the rooms of the house

  Determine whether the five-digit input was odd or even

inputs one number consisting of five digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each.

  Maintain a constant media schedule

It is usually unnecessary or not feasible to maintain a constant media schedule all year. What are the two other alternatives and what key characteristics of these two alternatives would be taken into account?

  Utilization of checked exceptions

There are instances where the utilization of checked exceptions are more appropriate than unchecked exceptions in exception handling. Provide an example of each exception not mentioned in the article. Explain why each type of exception is more app..

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