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

  Write the complete code for a public java class

Write the complete code for a public Java class called Change Machine that can hold nickels, dimes and quarters. Include a private instance variable to hold each type of coin that the machine hols.

  Assignment covers the subsequent eight topics and explore

assignment covers the subsequent eight topics and explore the implementation of memory management processes and

  Write down the java code for the bank

Write down the java code for the bank of Fraud. User is presented with menu which looks something like this: 1. Deposit 2. Withdrawal 3. Check Balance 4. Exit.

  Create a constructor with three default parameters

How can you create a constructor with three default parameters two of type string and one double?

  Create a java program

UserApp and PrettyPrintUtility multiple times (supplying different TransData test file names), the AutoTesterUtility PROGRAM will be the driver program.

  Write a method named longestword

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.

  Design a war game that you can play against the computer

Create a Card class to store a single playing card.  Create a class called DeckOfCards that stores 52 objects of the card class.  Create appropriate constructors and methods for each class that allow for the following requirements.

  Design a java program that has two parallel arrays

Design a java program that has two parallel arrays: a string array named people that is initialized with the names of seven of your friends, and a string array named phoneNumbers that is initialized with your friends phone numbers.

  Modify each sorting algorithm

Modify each sorting algorithm so that it keeps track of the number of comparisons it performs and the number of exchanges (swaps) it performs during a single sorting operation. Keep track of these numbers using two long integer counters

  Simulate some people catching fish in a lake in java program

In this project, you will simulate some people catching fish in a lake. The purpose of the assignment is to get used to using Arrays as well as getting more experience in having objects interact together.

  Prompt the user for an int between an upper and lower

prompt the user for an int between an upper and lower boundary. reuse the validateinput method from project to validate

  Write a recursive function that finds and returns the sum

Write a recursive function that finds and returns the sum of the elements of an int array. Also, write a program to test your function.

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