Find Jobs
Hire Freelancers

need a c++ file program done

₹100-400 INR / hour

ปิดแล้ว
โพสต์ มากกว่า 9 ปีที่ผ่านมา

₹100-400 INR / hour

Write a program to simulate managing files on disk. Define the disk as a one-dimensional array disk of size numOfSectors ∗ sizeOfSector, where sizeOfSector indicates the number of characters stored in one sector. (For the sake of debugging, make it a very small number.) A pool of available sectors is kept in a linked list sectors of three field structures: two fields to indicate ranges of available sectors and one next field. Files are kept in a linked list files of four field structures: filename, the number of characters in the file, a pointer to a linked list of sectors where the contents of the file can be found, and the next field. (a) In the first part, implement functions to save and delete files. Saving files requires claiming a sufficient number of sectors from pool, if available. The sectors may not be contiguous, so the linked list assigned to the file may contain several nodes. Then the contents of the file have to be written to the sectors assigned to the file. Deletion of a file only requires removing the nodes corresponding with this file (one from files and the rest from its own linked list of sectors) and transferring the sectors assigned to this file back to pool. No changes are made in disk. (b) File fragmentation slows down file retrieval. In the ideal situation, one cluster of sectors is assigned to one file. However, after many operations with files, it may not be possible. Extend the program to include a function together() to transfer files to contiguous sectors; that is, to create a situation illustrated in Figure 1. Fragmented files file1 and file2 occupy only one cluster of sectors after together() is finished. However, particular care should be taken not to overwrite sectors occupied by other files. For example, file1 requires eight sectors; five sectors are free at the beginning of pool, but sectors 5 and 6 are occupied by file2. Therefore, a file f occupying such sectors has to be located first by scanning files. The contents of these sectors must be transferred to unoccupied positions, which requires updating the sectors belonging to f in the linked list; only then can the released sectors be utilized. One way of accomplishing this is by copying from the area into which one file is copied chunks of sectors of another file into an area of the disk large enough to accommodate these chunks. In the example in Figure 1, contents of file1 are first copied to sectors 0 through 4, and then copying is temporarily suspended because sector 5 is occupied. Thus, contents of sectors 5 and 6 are moved to sector 12 and 14, and the copying of file1 is resumed.
รหัสโปรเจกต์: 7041491

เกี่ยวกับโปรเจกต์

11 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 9 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
11 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย ₹1,098 INR/ชั่วโมง สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
Hello I'm interesting your project very well I'm a Good C/C++, OS, Algorithm expert. I m quite well experienced in these jobs. Let's go ahead with me I want to service for you continously. Thanks
₹1,000 INR ใน 30 วัน
4.9 (940 รีวิว)
9.1
9.1
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
₹2,222 INR ใน 2 วัน
4.9 (1889 รีวิว)
7.9
7.9
รูปอวาตาร์ของผู้ใช้
Hi I am Dinh, I wrote some same job. U can see it in here https://www.freelancer.com/projects/C-Programming/ext-File-system.html Hope to work with u.
₹2,000 INR ใน 2 วัน
5.0 (59 รีวิว)
5.3
5.3
รูปอวาตาร์ของผู้ใช้
A proposal has not yet been provided
₹277 INR ใน 2 วัน
4.8 (42 รีวิว)
5.0
5.0
รูปอวาตาร์ของผู้ใช้
hello, place your confidence in my C/C++ knowledge and experience. please let me know if you are a third party service provider or a direct client. greets, srdjan
₹1,000 INR ใน 10 วัน
4.9 (34 รีวิว)
5.0
5.0
รูปอวาตาร์ของผู้ใช้
Is this a C/C++ project? Or is it a java project? I need more details to determine the exact time and cost needed.
₹555 INR ใน 10 วัน
5.0 (5 รีวิว)
3.4
3.4
รูปอวาตาร์ของผู้ใช้
I Am a professional C,c++ and Java programmer in NIIT I have completed my certification In Java And I hold oracle Java certifica in core java I love programming And I will be punctual and accurate
₹444 INR ใน 21 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
I've done my masters in computer science, experienced in programming from developing 7 mobile applications and designing 6 websites during student days. Worked for top MNC in research.
₹833 INR ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hello I am C/c++ programmer. I well known for this. Before I made program like this. If you want me, please leave message. Thanks
₹3,333 INR ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ INDIA
Bangalore, India
4.7
206
เป็นสมาชิกตั้งแต่ ม.ค. 29, 2011

การยืนยันลูกค้า

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง