project_3 (3)
.docx
keyboard_arrow_up
School
University of Texas, Dallas *
*We aren’t endorsed by this school
Course
4348
Subject
Computer Science
Date
Dec 6, 2023
Type
docx
Pages
5
Uploaded by MinisterThunder12117
Operating Systems
CS4348
Project #3:
Disk Allocation Methods
Due Date:
Monday, November 27, 2023
I.
Project Organization
This project demonstrates three different file allocation methods.
You should do the following pieces to complete your project.
Each piece is explained below:
Code
60 points
Output
30 points
Summary
10 points
Code
Your code should be nicely formatted with plenty of comments.
The code should be easy to read,
properly indented, employ good naming standards, good structure, etc.
Output
Output will be graded by running your program.
Summary
The summary section should discuss your project experience.
You should discuss how you approached
the project, including anything difficult or interesting, what was learned, and the end result.
This should be
at least 1 page in length.
II.
Project Description
Language/Platform/Approach
This project must target a Unix platform and execute properly on our cs1 or csgrads1 Linux server.
The project must be written in C++ or Java.
You should use the approach described under Details unless you have obtained instructor approval for
another approach.
Problem Overview
This project will simulate disk allocation methods.
The project will allow the user to choose an allocation method from among the three presented in the
textbook.
It will allow the user to perform disk operations on a simulated disk.
Details
The project will consist of three main objects:
User interface, File System, Disk Drive.
The disk should store its contents in an array.
The storage will consist of 256 blocks of 512 bytes each.
The first block is for the file allocation table.
The second block is a bitmap for free space management.
The remaining blocks hold data for the files.
The disk object only knows how to read and write blocks by
block number (array index).
The file system object is responsible for storing and retrieving files on the disk.
It can use any of the three
file allocation methods the user chooses.
Space is allocated using a first available approach, meaning it
uses the first free space it finds that satisfies the request.
The file system object may use other objects to
implement the different allocation methods.
The user interface object should provide a menu as shown below and invoke methods on the file system
object to support the menu choices.
1) Display a file
2) Display the file table
3) Display the free space bitmap
4) Display a disk block
5) Copy a file from the simulation to a file on the real system
6) Copy a file from the real system to a file in the simulation
7) Delete a file
8) Exit
A command line argument should let the user specify a file allocation method:
contiguous, chained,
indexed.
File names should be up to 8 characters.
Names should only have lowercase letters.
File extensions are not
supported.
The maximum file size should be 10 blocks.
All files reside at the root level, and subdirectories are not
supported.
The format of the file allocation table should be as shown in the slides, with a fixed size for each field.
Problems such as not having enough space should result in an error message to the user.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Create a simple program for a quiz
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
Create a folder named LastName_FirstName (ex. Dahan yoon) in your local
Create a new project named LabExer5B. Set the project location to your own
The program shall:
contain an array of 10 multiple choice questions with three (3) choices each and
require the user to choose among A, B, or C;
Note: Cases are ignored. Lowercase letters are acceptable (a, b, c).
Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following:
an invalid letter (not A, B, or C)
a number or any special character
blank (no answer)
Prompt the user that he can answer again if any of the three (3) exceptions is
Display the score.
arrow_forward
2. Design the form as follow:
File
Edit
View
Git
Project
Build
Debug
Format
Test
Analyze
Tools
Debug
Any CPU
> Start -
Form1.vb*
Form1.vb [Design]" X
o Sales App
Month
Enter the sales of each day in the month
Read
Sales in a month:
O Note:
- Add the following to the form:
a. Three buttons
b. Two labels
c. One textboxe
d. One listBox
- Give appropriate names to the form, and controls
Server Explorer Toolbox
arrow_forward
Task: Loading data from files
This exercise will require you to load some information from files and use it in your program.
scene.txt contains a description of a series of shapes and colours to draw. You need to write code to read in the file data and draw the requested shapes in the correct colour. Each line in scene.txt will contain one of the following starting keywords followed by some data:
COLOUR followed by 3 values: R, G, B
CIRCLE followed by 3 values: X, Y, RADIUS
RECT Followed by 4 values: X, Y, W, H
LINE Followed by 4 values: X1, Y1, X2, Y2
CIRCLES are defined from the center. RECT's are defined from the top left. All values are space separated, and you can assume all input is correct (no errors). Please solve this program to draw the scene.
I can't upload the file scene.txt, so I decide to screenshot a file for you.
Subject: Java Programming
arrow_forward
Project must include the following elements (using phyton software):
1. Multi-selection structure
2. Nested selection structure
3. User-defined function
4. User-defined function to perform a numerical calculation
5. All user-defined functions must be in individual files (phyton only)
6. Built-in function to perform the numerical calculation
7. Array manipulation
8. File operation
9. Apply data visualization library
I need to create programming for my project's ohms law calculation following all these elements. Here im attach image of my previous programming for ohms law calculation. Thank you for helping!
arrow_forward
Octave assignment 1-Introduction to Octave
Introduction
This assignment is meant to be a gentle introduction to Octave, the free version of Matlab. It
assumes that you have no prior coding experience.
Objectives
Download Octave and run it or use https://octave-online.net/
Learn the basics of the Octave GUI.
• Learn how to create a short executable file called an m-file (.m extension) and run it.
• Learn what a data type is.
• Learn how to declare variables of different data types.
• Learn how to create matrices.
• Learn how to use several of Octave’s functions for creating objects with random
numbers.
Instructions
1.) Create a file call it with the form exercise_1_first name_last name. Include the
underscores in your file name. At the top of the file add the comment "“My first Octave
assignment. I'm so excited, I just can't hide it."
2.) Create the following variables
a = 2.3;
b = -87.3;
A = [1,2; 4,5];
Create a matrix 2 × 2 B using the rand() function.
Create two random complex…
arrow_forward
Python help
arrow_forward
Create a js file called cart.js and make a product object for each of the products and store them in a products array when the script loads. Create an empty array to store the items added to the cart. Program the "add to cart button" to take the product id, finds the product object in the products array and adds it to the items added to cart array. Program the "remove from cart button" to take the product id and remove the project object from the items purchased array.
Existing code:
<!DOCTYPE html><html>
<head>
<div id="product1" class="card"><img src="img/clorox.jpg"><h1>Clorox</h1><p class="price">$20.00</p><p>Household Cleaner</p><p><button id="product1Btn1">Add to Cart</button></p><p><button id="product1Btn2">Remove from Cart</button></p></div>
<div id="product2" class="card"><img src="img/oxiclean.jpg"><h1>Oxiclean</h1><p…
arrow_forward
Instructions
The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly.
An example of the program is shown below:
Enter a radius for a circle >> 7
The radius is 7
The diameter is 14
The area is 153.93791
Task 1: The DebugPen class compiles without error.
This task is dependent on completing task #2.
Task 2: The DebugCircle class methods work without errors.
Task 3: The DebugFour1 class compiles without error.
Task 4: The DebugFour1 program accepts user input and displays the correct output.
arrow_forward
Language in C# using Visual Studio in Windows Form app please.
For the name files, just create a text file that has a few names for your time sake.
arrow_forward
This project involves generating a boarding pass ticket and storing it in a file.
The application should take the passenger details as input. The details of the boarding pass are to be stored in a file. The details should include valid data such as: name, email, phone number, gender, age, boarding pass number, date, origin, destination, estimated time of arrival (ETA), departure time.
The application should generate a boarding pass ticket using the boarding pass details. The generated ticket should contain the following information:
Boarding Pass Number, Date, Origin, Destination, Estimated time of arrival (ETA), Departure Time
Name, Email, Phone Number, Gender, Age
Total Ticket Price
The user will be required to enter their Name, Email, Phone Number, Gender, Age, Date, Destination, and Departure Time into the console or GUI.
From the input the computer must generate the ETA and Ticket Price.
The computer must generate the boarding pass number ensuring the number is unique.
All…
arrow_forward
THE SOLUTION SHOULD BE ORIGINAL NO COPY PASTE WORK BECAUSE NEEDED FOR COLLEGE WORK .
QUESTION IN ATTACH IMAGE
arrow_forward
Programming in c language
arrow_forward
1
arrow_forward
8
File
Help
Tell me what you want to do
Home Insert Design Layout References Mailings Review View
iGET GENUINE OFFICE Your license isn't genuine, and you may be a victim of software counterfeiting. Avoid interruption and keep your files safe with genuine Office today.
Page 1 of 1
80 words
Accessibility: Investigate
CS309
CS309 ASSIGNMENT 9 - Word
A process description for "Pay Commission" is provided below:
For each COMMISSION EARNED
If EXTRA BONUS equals Y
|
-If PAYMENT TOTAL is greater than $80,000
Add 3% to COMMISSION PERCENT
Output SPECIAL LETTER
Output AWARD LIST
Else Add 2% to COMMISSION PERCENT
Output AWARD LIST
Else
If PAYMENT TOTAL is greater than $80,000
Add 1% to COMMISSION PERCENT
Output SPECIAL LETTER
Calculate COMMISSION COMMISSION PERCENT times PAYMENT TOTAL
Required:
Construct a Decision Table for the above process description.
delinki asylum
Get genuine Office
Learn more
F
+
+
X Q
X
100%
arrow_forward
C++ Visual Studio 2019
NumDays, TimeOff, and Personnel Report
Complete #4, 5 & 6 . Please submit just one file for the classes and main to test the classes. Just create the classes before main and submit only one cpp file. Do not create separate header files. There is a sample NumDays class in a text file for you to use as a base.
arrow_forward
@Build ER diagram
arrow_forward
Please written by computer source
Instructions
Deliverables:
For this assignment you will submit two python files to the drop box. Name the main file: lastname_firstname_assign2.py and name the module file: conversion.py.
Example: turner_randy_assign2.py
Create a program that converts feet to meters and vice versa.
Specifications
The formula for converting feet to meters is: feet = meters / 0.3048
The formula for converting meters to feet is: meters = feet * 0.3048
Store the code that performs the actual conversions in separate functions within a separate code module named "conversions.py". These two functions will take a single parameter and return the resulting conversion value. Close the file
Start a new .py file and use an "import" statement to import your custom module into this new file
Write a separate function to display the program banner/title
Write a separate function to display the menu as shown below in the sample output
Write the rest of the code to (1) take the user…
arrow_forward
C++ Visual Studio 2019
Instructions
Complete #1 & #2. Please submit just one file for the classes and main to test the classes. Just create the classes before main and submit only one cpp file. Do not create separate header files. Please note: the deleteNode needs to initialize the *nodePtr and the *previousNode. The code to do this can be copied from here: ListNode *nodePtr, *previousNode = nullptr;
arrow_forward
me
words
Insert
Chapter 8 example.docx-Word
View
Review
Design
Tell me what you want to do...
Layout
Mailings
References
Class A:
Int data1, data2
A(int d1,int d2)// initialize data1, data2
Int Add() // adds two numbers: data1, data2
0
Class B:
Data3
Int AddFromB(int d1,int d2, int d3)// adds three numbers {
Super(d1, d2)
Int s=Add()
Int sb=s+d3}
Suppose you have a class called A which have two integer
data(data1, data2) and a method Add() which returns
sammation of data1and data2.
Another class B has an integer data3 and a method AddFromB()
which adds data3 with the returned result of Add().
Now implement the above scenario and show the summation of
three integer numbers.
Ix
Sign in
arrow_forward
String data type is not allowed you can make use of CString instead (char arrays with null termination).
Q1. Create an Input File with the following information regarding to inventory:
Item_Id Price Quantity Availability
Add atleast 10 records in input file.
Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available.
Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on:
1. Display the Item_Id of the products which are not available in stock on screen.
2. Copy all the available products data in a separate file.
3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file.
4. Try to save the information processed in part 3 in the original…
arrow_forward
LINKS :
https://youtu.be/rR_mmsfIzzs
Input for games - UWP applications | Microsoft Learn
arrow_forward
Create a simple program for a quiz bee.
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive.
2. Create a new project named LabExer5B. Set the project location to your own folder.
3. The program shall:
contain an array of 10 multiple choice questions with three (3) choices each and
require the user to choose among A, B, or C;
Note: Cases are ignored. Lowercase letters are acceptable (a, b, c).
4. Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the
following:
• an invalid letter (not A, B, or C)
• a number or any special character
• blank (no answer)
5. Prompt the user that he can answer again if any of the three (3) exceptions is thrown.
6. Display the score.
arrow_forward
Computer Science
JAVASCRIPT .xlsx parser
I need to write a public class that reads an .xlsx file and returns an array of data in javascript. The array would be all of the data inside of the file.
The file itself is going to be inside of a folder(downloadedFIles) inside of my project. So the public class will need to account for that.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Related Questions
- Create a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.arrow_forward2. Design the form as follow: File Edit View Git Project Build Debug Format Test Analyze Tools Debug Any CPU > Start - Form1.vb* Form1.vb [Design]" X o Sales App Month Enter the sales of each day in the month Read Sales in a month: O Note: - Add the following to the form: a. Three buttons b. Two labels c. One textboxe d. One listBox - Give appropriate names to the form, and controls Server Explorer Toolboxarrow_forwardTask: Loading data from files This exercise will require you to load some information from files and use it in your program. scene.txt contains a description of a series of shapes and colours to draw. You need to write code to read in the file data and draw the requested shapes in the correct colour. Each line in scene.txt will contain one of the following starting keywords followed by some data: COLOUR followed by 3 values: R, G, B CIRCLE followed by 3 values: X, Y, RADIUS RECT Followed by 4 values: X, Y, W, H LINE Followed by 4 values: X1, Y1, X2, Y2 CIRCLES are defined from the center. RECT's are defined from the top left. All values are space separated, and you can assume all input is correct (no errors). Please solve this program to draw the scene. I can't upload the file scene.txt, so I decide to screenshot a file for you. Subject: Java Programmingarrow_forward
- Project must include the following elements (using phyton software): 1. Multi-selection structure 2. Nested selection structure 3. User-defined function 4. User-defined function to perform a numerical calculation 5. All user-defined functions must be in individual files (phyton only) 6. Built-in function to perform the numerical calculation 7. Array manipulation 8. File operation 9. Apply data visualization library I need to create programming for my project's ohms law calculation following all these elements. Here im attach image of my previous programming for ohms law calculation. Thank you for helping!arrow_forwardOctave assignment 1-Introduction to Octave Introduction This assignment is meant to be a gentle introduction to Octave, the free version of Matlab. It assumes that you have no prior coding experience. Objectives Download Octave and run it or use https://octave-online.net/ Learn the basics of the Octave GUI. • Learn how to create a short executable file called an m-file (.m extension) and run it. • Learn what a data type is. • Learn how to declare variables of different data types. • Learn how to create matrices. • Learn how to use several of Octave’s functions for creating objects with random numbers. Instructions 1.) Create a file call it with the form exercise_1_first name_last name. Include the underscores in your file name. At the top of the file add the comment "“My first Octave assignment. I'm so excited, I just can't hide it." 2.) Create the following variables a = 2.3; b = -87.3; A = [1,2; 4,5]; Create a matrix 2 × 2 B using the rand() function. Create two random complex…arrow_forwardPython helparrow_forward
- Create a js file called cart.js and make a product object for each of the products and store them in a products array when the script loads. Create an empty array to store the items added to the cart. Program the "add to cart button" to take the product id, finds the product object in the products array and adds it to the items added to cart array. Program the "remove from cart button" to take the product id and remove the project object from the items purchased array. Existing code: <!DOCTYPE html><html> <head> <div id="product1" class="card"><img src="img/clorox.jpg"><h1>Clorox</h1><p class="price">$20.00</p><p>Household Cleaner</p><p><button id="product1Btn1">Add to Cart</button></p><p><button id="product1Btn2">Remove from Cart</button></p></div> <div id="product2" class="card"><img src="img/oxiclean.jpg"><h1>Oxiclean</h1><p…arrow_forwardInstructions The files provided in the code editor to the right contain syntax and/or logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly. An example of the program is shown below: Enter a radius for a circle >> 7 The radius is 7 The diameter is 14 The area is 153.93791 Task 1: The DebugPen class compiles without error. This task is dependent on completing task #2. Task 2: The DebugCircle class methods work without errors. Task 3: The DebugFour1 class compiles without error. Task 4: The DebugFour1 program accepts user input and displays the correct output.arrow_forwardLanguage in C# using Visual Studio in Windows Form app please. For the name files, just create a text file that has a few names for your time sake.arrow_forward
- This project involves generating a boarding pass ticket and storing it in a file. The application should take the passenger details as input. The details of the boarding pass are to be stored in a file. The details should include valid data such as: name, email, phone number, gender, age, boarding pass number, date, origin, destination, estimated time of arrival (ETA), departure time. The application should generate a boarding pass ticket using the boarding pass details. The generated ticket should contain the following information: Boarding Pass Number, Date, Origin, Destination, Estimated time of arrival (ETA), Departure Time Name, Email, Phone Number, Gender, Age Total Ticket Price The user will be required to enter their Name, Email, Phone Number, Gender, Age, Date, Destination, and Departure Time into the console or GUI. From the input the computer must generate the ETA and Ticket Price. The computer must generate the boarding pass number ensuring the number is unique. All…arrow_forwardTHE SOLUTION SHOULD BE ORIGINAL NO COPY PASTE WORK BECAUSE NEEDED FOR COLLEGE WORK . QUESTION IN ATTACH IMAGEarrow_forwardProgramming in c languagearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr