program # 2 OSpgm2c_4 CGS3767 Operating Systems for IT Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu *********...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
program # 2 OSpgm2c_4 CGS3767 Operating Systems for IT Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu ********* !!!!*** USE THE TOOLS THAT WE HAVE LEARNED IN OUR CLASS ONLY ***!!!! ************** 1) Login, and in your CURRENT folder, create a folder named pgm2 ********** This assignment is worth 10 points total, partial credit will be given, In your Ubuntu VM (virtual machine), using terminal mode ONLY, do the following: DO NOT USE WINDOWS, MAC OR ANY OTHER OS TO DO THIS PROGRAM *********** ***WARNING*** I AM NOT ASKING YOU TO GO TO YOUR DESKTOP, HOME, USER, ETC DIRECTORY Just when you log into your Ubuntu terminal mode create a folder named pgm2 When I grade your program I will execute it from my local ubuntu folder named pgm2. If your program is trying to execute from any other folder you will get a 0 (zero) grade into your pgm2 folder. 2) In terminal mode, using the wget command, download your RAMerrors8x4f.6 file, located at http://users.cis.fiu.edu/~mrobi002/databases/RAMerrors8x4f.6 *** DO NOT CHANGE THE FILE NAME OR THE LOCATION OF THIS FILE OR PROGRAM *** Each record in this file represents the location of an error found in RAM RAM chip contain addresses: 3) Assume you have a computer with 32 gigs of RAM, each 4 gigs in a different memory chip, therefore you have 8 (eight) 4 gigs RAM chips. The following are the memory locations for each one of the 8 (eight) RAM chips decimal address 0 - 34,359,738,368 bits = Total GIGS 4 RAM chip 1 contain addresses: 34,359,738,369 - 68,719,476,738 bits = RAM chip 2 contain addresses: 68,719,476,739 103,079,215,108 bits = RAM chip 3 contain addresses: 103,079,215,109 137,438,953,478 bits = RAM chip 4 contain addresses:137,438,953,479 171,798,691,848 bits = RAM chip 5 contain addresses: 171,798, 691,849 - 206,158,430,218 bits = RAM chip 6 contain addresses: 206,158,430,219 240,518,168,588 bits = RAM chip 7 contain addresses: 240, 518,168,589 274,877,906,958 bits = I used this link to do the calculations: http://www.matisse.net/bitcalc/?input_amount=274%2C877%2C906%2C958&input_units-bits¬ation=legacy your lastName, First letter of your first name, _OS, pgm2, java example: robinsonM_OSpgm2.java 4) In the same folder (pgm2), IN TERMINAL MODE, using any linux editor, create a Java program named: ********** * MAKE SURE THAT YOUR : java program 2 and the RAMerrors8x4f.6 file are in THE SAME pgm2 FOLDER * ********* 5) Your Java program, in the following sequence, will do the following: a) Open the text file (named on question 2 above ) USING any Java file commands learned in cop2250 or the Computer Science equivalent class. b) Read each record, which is the location of an error in RAM, in hex c) Convert that hex value to binary, in a NEW separate method, named by you. d) Convert the binary value to its decimal value, in a NEW separate method, named by you. e) In a NEW separate method, named by you, using System.out.printf ONLY, Hex Error hex number = hex number = hex number = hex number = hex number = hex number = hex number = hex number display all the previous information and the RAM chip number where the error is located, for each ecord, totally ALIGNED, as follows: Binary binary number binary number binary number binary number binary number binary number binary number = = decimal number = binary number = decimal number = = *** USE TERMINAL MODE ONLY *** = = Decimal decimal number = decimal number = decimal number = decimal number = = Found at chip number chip number chip number chip number decimal number chip number decimal number = chip number chip number chip number note: Location addresses for RAM chips are decimal 8 12 16 20 24 28 32 *** YOU MUST FOLLOW MY JAVA RULES AT: https://users.cs.fiu.edu/~mrobi002/includes/JAVA_programmingRules *** NOTE: During the entire semester, in this class, when using Java, we will ONLY use the System.out printf(...) command In all Java program we will use 4(four) SPACES ***NO TABS*** when indenting. *** DO NOT CHANGE THE FILE NAME download the file using the wget command *** MAKE SURE THE FILE IS IN THE SAME FOLDER AS YOUR JAVA PROGRAM *** CREATE YOUR OWN METHODS THAT WILL CONVERT HEX TO BINARY AND BINARY TO DECIMAL *** DO NOT USE JAVA'S AUTOMATIC CONVERSION METHODS *** DO NOT USE THE JAVA'S PARSE COMMANDS, YOUR PROGRAM WILL GET 0 (ZERO) *** USE System.out.printf commands ONLY to print any data *** If you can not find a chip number corresponding to the error number, display N/A 6) From the main method call the following new methods: lowerCase() and upperCase() 7) On a NEW SEPARATE lowerCase() method, using the System.out.printf command, display each lower case letter and the corresponding ASCII code Example: j=106 k=107 8) On a NEW SEPARATE upperCase() method, using the System.out.printf command, display each upper case letter and the corresponding ASCII code Example: J=74 K=75 Submitting your program - For all Classes: Upload your program to Canvas. - Make sure the program is properly documented and aligned uniformly, looking professionally, I will take points off if it not. NOTE: If you have any question, please email me at michael.robinson@cs.fiu.edu We have FREE tutoring from Monday thru Friday, please visit us PG6 #102 and on ZOOM Office Hours twice a week Please remember that we are here to help you succeed in your classes program # 2 OSpgm2c_4 CGS3767 Operating Systems for IT Professor: Michael Robinson e-mail : michael.robinson@cs.fiu.edu ********* !!!!*** USE THE TOOLS THAT WE HAVE LEARNED IN OUR CLASS ONLY ***!!!! ************** 1) Login, and in your CURRENT folder, create a folder named pgm2 ********** This assignment is worth 10 points total, partial credit will be given, In your Ubuntu VM (virtual machine), using terminal mode ONLY, do the following: DO NOT USE WINDOWS, MAC OR ANY OTHER OS TO DO THIS PROGRAM *********** ***WARNING*** I AM NOT ASKING YOU TO GO TO YOUR DESKTOP, HOME, USER, ETC DIRECTORY Just when you log into your Ubuntu terminal mode create a folder named pgm2 When I grade your program I will execute it from my local ubuntu folder named pgm2. If your program is trying to execute from any other folder you will get a 0 (zero) grade into your pgm2 folder. 2) In terminal mode, using the wget command, download your RAMerrors8x4f.6 file, located at http://users.cis.fiu.edu/~mrobi002/databases/RAMerrors8x4f.6 *** DO NOT CHANGE THE FILE NAME OR THE LOCATION OF THIS FILE OR PROGRAM *** Each record in this file represents the location of an error found in RAM RAM chip contain addresses: 3) Assume you have a computer with 32 gigs of RAM, each 4 gigs in a different memory chip, therefore you have 8 (eight) 4 gigs RAM chips. The following are the memory locations for each one of the 8 (eight) RAM chips decimal address 0 - 34,359,738,368 bits = Total GIGS 4 RAM chip 1 contain addresses: 34,359,738,369 - 68,719,476,738 bits = RAM chip 2 contain addresses: 68,719,476,739 103,079,215,108 bits = RAM chip 3 contain addresses: 103,079,215,109 137,438,953,478 bits = RAM chip 4 contain addresses:137,438,953,479 171,798,691,848 bits = RAM chip 5 contain addresses: 171,798, 691,849 - 206,158,430,218 bits = RAM chip 6 contain addresses: 206,158,430,219 240,518,168,588 bits = RAM chip 7 contain addresses: 240, 518,168,589 274,877,906,958 bits = I used this link to do the calculations: http://www.matisse.net/bitcalc/?input_amount=274%2C877%2C906%2C958&input_units-bits¬ation=legacy your lastName, First letter of your first name, _OS, pgm2, java example: robinsonM_OSpgm2.java 4) In the same folder (pgm2), IN TERMINAL MODE, using any linux editor, create a Java program named: ********** * MAKE SURE THAT YOUR : java program 2 and the RAMerrors8x4f.6 file are in THE SAME pgm2 FOLDER * ********* 5) Your Java program, in the following sequence, will do the following: a) Open the text file (named on question 2 above ) USING any Java file commands learned in cop2250 or the Computer Science equivalent class. b) Read each record, which is the location of an error in RAM, in hex c) Convert that hex value to binary, in a NEW separate method, named by you. d) Convert the binary value to its decimal value, in a NEW separate method, named by you. e) In a NEW separate method, named by you, using System.out.printf ONLY, Hex Error hex number = hex number = hex number = hex number = hex number = hex number = hex number = hex number display all the previous information and the RAM chip number where the error is located, for each ecord, totally ALIGNED, as follows: Binary binary number binary number binary number binary number binary number binary number binary number = = decimal number = binary number = decimal number = = *** USE TERMINAL MODE ONLY *** = = Decimal decimal number = decimal number = decimal number = decimal number = = Found at chip number chip number chip number chip number decimal number chip number decimal number = chip number chip number chip number note: Location addresses for RAM chips are decimal 8 12 16 20 24 28 32 *** YOU MUST FOLLOW MY JAVA RULES AT: https://users.cs.fiu.edu/~mrobi002/includes/JAVA_programmingRules *** NOTE: During the entire semester, in this class, when using Java, we will ONLY use the System.out printf(...) command In all Java program we will use 4(four) SPACES ***NO TABS*** when indenting. *** DO NOT CHANGE THE FILE NAME download the file using the wget command *** MAKE SURE THE FILE IS IN THE SAME FOLDER AS YOUR JAVA PROGRAM *** CREATE YOUR OWN METHODS THAT WILL CONVERT HEX TO BINARY AND BINARY TO DECIMAL *** DO NOT USE JAVA'S AUTOMATIC CONVERSION METHODS *** DO NOT USE THE JAVA'S PARSE COMMANDS, YOUR PROGRAM WILL GET 0 (ZERO) *** USE System.out.printf commands ONLY to print any data *** If you can not find a chip number corresponding to the error number, display N/A 6) From the main method call the following new methods: lowerCase() and upperCase() 7) On a NEW SEPARATE lowerCase() method, using the System.out.printf command, display each lower case letter and the corresponding ASCII code Example: j=106 k=107 8) On a NEW SEPARATE upperCase() method, using the System.out.printf command, display each upper case letter and the corresponding ASCII code Example: J=74 K=75 Submitting your program - For all Classes: Upload your program to Canvas. - Make sure the program is properly documented and aligned uniformly, looking professionally, I will take points off if it not. NOTE: If you have any question, please email me at michael.robinson@cs.fiu.edu We have FREE tutoring from Monday thru Friday, please visit us PG6 #102 and on ZOOM Office Hours twice a week Please remember that we are here to help you succeed in your classes
Expert Answer:
Related Book For
Chemistry The Central Science
ISBN: 978-0321696724
12th edition
Authors: Theodore Brown, Eugene LeMay, Bruce Bursten, Catherine Murphy, Patrick Woodward
Posted Date:
Students also viewed these programming questions
-
llustrate different ways of connecting these components together to span a range of performance requirements. [10 marks] For each of the performance categories that you identify state today's typical...
-
: (i) What data structures are maintained by the page manager. (ii) What happens when a machine performs a read operation to a page. (iii) What happens when a machine performs a write operation to a...
-
The price of a stock is $55. A put option written on this stock with a strike price of $48.8 is quoted at $7.2. One option contracts covers 100 underlying shares. A trader enters a short position in...
-
The stockholders' equity for Little Wonders Company on August 13, 2017, follows: On August 13, 2017, the market price of Little Wonders common stock was $20 per share. Assume Little Wonders declared...
-
Cullumber Company has the following balance in selected account on December 3 1 , 2 0 2 2 . Accounts Receivable $ 0 , Accumulated Depreciation - Equipment 0 , Equipment $ 8 0 0 , Interest payable 0 ,...
-
In some instances, a temporary restraining order can be granted ex parte (i.e., without notice to the other side) until a hearing for a preliminary injunction can be held. Further investigate CCP 527...
-
Computing the payback period and unadjusted rate of return for the same investment opportunity Foy Rentals can purchase a van that costs $60,000; it has an expected useful life of three years and no...
-
15. Given the following three planes, determine if the three planes intersect at a point or possibly have a line of intersection, then determine the intersection, if possible. (7) x+2y+3x+1=0...
-
Compute the Howells' tax liability for the year (ignoring the alternative minimum tax and any phase-out provisions) assuming they file a joint return, they have no dependents, they don't make any...
-
Park Terrace Apartments LLC purchased a 110-unit apartment building in Austin, TX. The purchase price was $25,125,000.00. They are allocating 20% of the purchase price towards the value of the land. ...
-
$ 35x+ydy ax sshydy ak Evaluate the iterated integrat -10 -10 25x+ydy dx = [
-
Activity 3B Estimated Time Objective Equipment needed 60 Minutes To provide you with an opportunity to seek and discuss feedback and any reactions to the presentation from participants and relevant...
-
Using self-reported average daily minutes of exercise and the productivity scores (1 = low, 10 = high) assigned by each employee's manager, is there data to suggest that employees who exercise more...
-
Which are the correct notations for writing a comment in Python?
-
Which type of wiring standard completely reverses the pin configuration from one end of the cable to the other, so that wires 1 to 8, connect respectively to pins 8 to 1?
-
Bijaksana Sdn Bhd (BSB) manufactures computer parts and employs 300 staffs and able to achieve net profit of 20% to 30% consistently. BSB is a family-owned business which hold by five individuals....
-
10m solution. If Ka(HA) = 10 then pOH of solution will be [Given : log4=0.6] (A) 6.7 (B) Greater than 6.7 & less than 7.0 (C) Greater 7.0 & less than 7.3 (D) Greater than 7.3
-
The following electron configurations represent excited states. Identify the element, and write its ground-state condensed electron configuration. (a) 1s2 2s2 3p2 4p1, (b) [Ar] 3d10 4s1 4p4 5s1, (c)...
-
Describe the intermediate that is thought to form in the addition of a hydrogen halide to an alkene, using cyclohexene as the alkene in your description.
-
A fixed quantity of gas at 21oC exhibits a pressure of 752 torr and occupies a volume of 5.12 L. (a) Calculate the volume the gas will occupy if the pressure is increased to 1.88 atm while the...
-
The flow about a \(150 \mathrm{~mm}\) artillery projectile which travels at \(600 \mathrm{~m} / \mathrm{s}\) through still air at \(30^{\circ} \mathrm{C}\) and absolute pressure \(101.4...
-
Consider water flow around a circular cylinder, of diameter \(D\) and length \(l\). In addition to geometry, the drag force is known to depend on liquid speed, \(V\), density, \(ho\), and viscosity,...
-
A 1:10 scale model of a tractor-trailer rig is tested in a wind tunnel. The model frontal area is \(A_{m}=0.1 \mathrm{~m}^{2}\). When tested at \(V_{m}=75 \mathrm{~m} / \mathrm{s}\) in standard air,...
Study smarter with the SolutionInn App