Problems related to java programming

Assignment Help JAVA Programming
Reference no: EM13726719

1 - Worth 4 points.
Using your Windows or Linux virtual machine in terminal mode ONLY:
Each record in this file represents the location of an error found in RAM.
Assume you have a computer with 8 gigs of RAM. Each gig in one RAM chip.
One Gigabyte contains 1,073,741,824 (2^30) bytes

---------decimal-------------
from bit to bit
RAM chip 0 contain addresses: 0 1,073,741,823
RAM chip 1 contain addresses: 1,073,741,824 2,147,483,647
RAM chip 2 contain addresses: 2,147,483,648 3,221,225,471
RAM chip 3 contain addresses: 3,221,225,472 4,294,967,295
RAM chip 4 contain addresses: 4,294,967,296 5,368,709,119
RAM chip 5 contain addresses: 5,368,709,120 6,442,450,943
RAM chip 6 contain addresses: 6,442,450,944 7,516,192,767
RAM chip 7 contain addresses: 7,516,192,768 8,589,934,591

Create a Java program to do the following:
- Open the text file you downloaded.
- Read each record.
- Print the RAM memory chip where each error is located as in the following
example: (the data below is not part of this program, it is just an example)

ErrorCode Binary Faulty at OnChip#
========= ============================================ =========== =
ABCDEFABC 1010 1011 1100 1101 1110 1111 1010 1011 1100 46118402748 3
1A00D0000 0001 1010 0000 0000 1101 0000 0000 0000 0000 6980173824 0
7A0EDF301 0111 1010 0000 1110 1101 1111 0011 0000 0001 32764719873 2
3CDAEFFAD 0011 1100 1101 1010 1110 1111 1111 1010 1101 16335699885 1


2 - Using Linux Shell Scripting.
- Implement division by 0, with error trapping, using if and while() commands,

How:
- Append your name, current date and time to a NEW file called results.txt
- Use a while loop.
- If the user enters the value -99 for the first or the second number, you must
exit the while loop immediately.
- Ask the user to enter the first number.
- Ask the user to enter the second number.
- If the second number is ZERO inform the user and ask for a correct second number.
- If the second number is NOT a zero, do the division, display all numbers in this
computation using labels, and add them to the results.txt file.

3 - Do the same as question 2 using Windows Batch.


4 - Linux Shell Scripting.

How:
- Use a for loop from 1 to 100.
- Find the results of calculating each number from (1 to 100 mod 5) + 2.
- After the for loop ends, display the average for all previous results and
append them to the results.txt file.

5 - Worth 1.5 points. Do the same as question 4 using Windows Batch.

Program submission
==================
You need to submit:

1 LastNameFirstInitialpgm3.java ex: RobinsonMpgm3.java
1 LastNameFirstInitialpgm3.sh ex: RobinsonMpgm3.sh
1 LastNameFirstInitialpgm3.bat ex: RobinsonMpgm3.bat

The Linux sh file will contain the divide by zero and the for loop parts

The Windows bat file will contain the divide by zero and the for loop parts

Make sure to rename the bat files to ba

Zip all three files into one file and email it (the zip file).

Reference no: EM13726719

Questions Cloud

Create a budget and chart analysis for a fictitious business : For this assignment, you will create a budget and chart analysis for a fictitious business. Its purpose is for you to learn best practices for utilizing spreadsheet software (e.g., Excel, Google Spreadsheets, etc.). The final product will consist ..
How did the spanish interact with the american indians : How did the Spanish interact with the American Indians?
Discuss what you deem the ten most important developments : Discuss what you deem the TEN most important developments, events and/or episodes discussed in the chapter. You must explain why each of the TEN merits your consideration.
Determine the overall role of store associates : Analyze the overall role of store associates in serving consumers who are better informed through technology. Support your answer with examples
Problems related to java programming : Create a Java program to do the following: - Open the text file you downloaded. - Read each record.
Compare and contrast ancient egyption art and culture : Compare and contrast Ancient Egyption Art and culture with Classical greek Art and culture . How did the geography of Egypt , including the Nile river , influence the culture belifes and artwork of the Ancient Egyption?
In waht way judgmental data used to assess market structure : In what ways are Usage, Purchase, and Judgmental Data used to assess market structure? Can you think of other types of data
Describe how this might affect the marketing mix : Baby boomers in America are aging. Describe how this might affect the marketing mix, Watch the "Zappos" video at the text Companion website (your access code packaged with the textbook)
Why were the iroquis so violent with hurting the englishmen : Why were the Iroquis so violent with hurting the Englishmen? Why didn't they see them as an asset to help them better there tribe like some of the other tribes did.

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