Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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).

Java, Programming

  • Category:- Java
  • Reference No.:- M91266098
  • Price:- $120

Guranteed 48 Hours Delivery, In Price:- $120

Have any Question?


Related Questions in Java

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Assessment database and multithread programmingtasktask 1

Assessment: Database and Multithread Programming Task Task 1: Grade Processing University grading system maintains a database called "GradeProcessing" that contains number of tables to store, retrieve and manipulate stud ...

Overviewyou are required to use java se 80 and javafx to

Overview You are required to use Java SE 8.0 and JavaFX to develop a Graphical User Interface (GUI) for the FlexiRent rental property management program created in Assignment 1. This assignment is designed to help you: 1 ...

Question slideshows or carousels are very popular in

Question : Slideshows (or carousels) are very popular in websites. They allow web developers to display news or images on the website in limited space. In this code challenge, you are required to complete the JavaScript ...

Chatbotscreate a small networked chat application that is

Chatbots Create a small, networked chat application that is populated by bots. Introduction On an old server park, filled with applications from the early days of the internet, a few servers still run one of the earliest ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As