Advanced Operating Systems Project

 

There are 4 parts for the project. The question may be long to read but it’s not a heavy work because there are many examples and explanations for the each parts.

*Part 1.  The first part of this project requires that you implement a class that will be used to simulate a disk drive. The disk drive will have numberofblocks many blocks where each block has blocksize many bytes. The interface for the class Sdisk should include :

Class Sdisk



{




public :




Sdisk(string diskname, int numberofblocks, int blocksize);




int getblock(int blocknumber, string& buffer);




int putblock(int blocknumber, string buffer);




int getnumberofblocks(); // accessor function




int getblocksize(); // accessor function




private :




string diskname;        // file name of software-disk




int numberofblocks;     // number of blocks on disk




int blocksize;          // block size in bytes




};




An explanation of the member functions follows :

  • Sdisk(diskname, numberofblocks, blocksize)
    This constructor incorporates the creation of the disk with the “formatting” of the device. It accepts the integer values numberofblocks, blocksize, a string diskname and creates a Sdisk (software-disk). The Sdisk is a file of characters which we will manipulate as a raw hard disk drive. The function will check if the file diskname exists. If the file exists, it is opened and treated as a Sdisk with numberofblocks many blocks of size blocksize. If the file does not exist, the function will create a file called diskname which contains numberofblocks*blocksize many characters. This file is logically divided up into numberofblocks many blocks where each block has blocksize many characters. The text file will have the following structure :
     

                                                            -figure 0 (what I attached below)              

  • getblock(blocknumber,buffer)
    retrieves block blocknumber from the disk and stores the data in the string buffer. It returns an error code of 1 if successful and 0 otherwise.
  • putblock(blocknumber,buffer)
    writes the string buffer to block blocknumber. It returns an error code of 1 if successful and 0 otherwise.

IMPLEMENTATION GUIDELINES : It is essential that your software satisfies the specifications. These will be the only functions (in your system) which physically access the Sdisk. NOTE that you must also write drivers to test and demonstrate your program.

*Part 2.  The second part of this project requires that you implement a simple file system. In particular, you are going to write the software which which will handle dynamic file management. This part of the project will require you to implement the class Filesys along with member functions. In the description below, FAT refers to the File Allocation Table and ROOT refers to the Root Directory. The interface for the class should include :

Class Filesys: public Sdisk



{




Public :




Filesys(string diskname, int numberofblocks, int blocksize);




int fsclose();




int fssynch();




int newfile(string file);




int rmfile(string file);




int getfirstblock(string file);




int addblock(string file, string block);




int delblock(string file, int blocknumber);




int readblock(string file, int blocknumber, string& buffer);




int writeblock(string file, int blocknumber, string buffer);




int nextblock(string file, int blocknumber);




Private :




int rootsize;           // maximum number of entries in ROOT




int fatsize;            // number of blocks occupied by FAT




vector<string> filename;   // filenames in ROOT




vector<int> firstblock; // firstblocks in ROOT




vector<int> fat;             // FAT




};




An explanation of the member functions follows :

  • Filesys()
    This constructor reads from the sdisk and either opens the existing file system on the disk or creates one for an empty disk. Recall the sdisk is a file of characters which we will manipulate as a raw hard disk drive. This file is logically divided up into number_of_blocks many blocks where each block has block_size many characters. Information is first read from block 1 to determine if an existing file system is on the disk. If a filesystem exists, it is opened and made available. Otherwise, the file system is created.The module creates a file system on the sdisk by creating an intial FAT and ROOT. A file system on the disk will have the following segments:

                                                             -figure 1 (what I attached below)           

  • consists of two primary data objects. The directory is a file that consists of information about files and sub-directories. The root directory contains a list of file (and directory) names along with a block number of the first block in the file (or directory). (Of course, other information about the file such as creation date, ownership, permissions, etc. may also be maintained.) ROOT (root directory) for the above example may look something like

                                                    -figure 2 (what I attached below)

    The FAT is an array of block numbers indexed one entry for every block. Every file in the file system is made up of blocks, and the component blocks are maintained as linked lists within the FAT. FAT[0], the entry for the first block of the FAT, is used as a pointer to the first free (unused) block in the file system. Consider the following FAT for a file system with 16 blocks.

                                                        -figure 3 (what I attached below)

  • In the example above, the FAT has 3 files. The free list of blocks begins at entry 0 and consists of blocks 6, 8, 13, 14, 15. Block 0 on the disk contains the root directory and is used in the FAT for the free list. Block 1 and Block 2 on the disk contains the FAT. File 1 contains blocks 3, 4 and 5; File 2 contains blocks 7 and 9; File 3 contains blocks 10, 11, and 12. Note that a “0” denotes the end-of-file or “last block”.
    PROBLEM : What should the value of FAT_size be in terms of blocks if a file system is to be created on the disk? Assume that we use a decimal numbering system where every digit requires one byte of information and is in the set [0..9].
    Both FAT and ROOT are stored in memory AND on the disk. Any changes made to either structure in memory must also be immediately written to the disk.
  • fssynch
    This module writes FAT and ROOT to the sdisk. It should be used every time FAT and ROOT are modified.
  • fsclose
    This module writes FAT and ROOT to the sdisk (closing the sdisk).
  • newfile(file)
    This function adds an entry for the string file in ROOT with an initial first block of 0 (empty). It returns error codes of 1 if successful and 0 otherwise (no room or file already exists).
  • rmfile(file)
    This function removes the entry file from ROOT if the file is empty (first block is 0). It returns error codes of 1 if successful and 0 otherwise (not empty or file does not exist).
  • getfirstblock(file)
    This function returns the block number of the first block in file. It returns the error code of 0 if the file does not exist.
  • addblock(file,buffer)
    This function adds a block of data stored in the string buffer to the end of file F and returns the block number. It returns error code 0 if the file does not exist, and returns -1 if there are no available blocks (file system is full!).
  • delblock(file,blocknumber)
    The function removes block numbered blocknumber from file and returns an error code of 1 if successful and 0 otherwise.
  • readblock(file,blocknumber,buffer)
    gets block numbered blocknumber from file and stores the data in the string buffer. It returns an error code of 1 if successful and 0 otherwise.
  • writeblock(file,blocknumber,buffer)
    writes the buffer to the block numbered blocknumber in file. It returns an appropriate error code.
  • nextblock(file,blocknumber)
    returns the number of the block that follows blocknumber in file. It will return 0 if blocknumber is the last block and -1 if some other error has occurred (such as file is not in the root directory, or blocknumber is not a block in file.)IMPLEMENTATION GUIDELINES : It is essential that your software satisfies the specifications. These will be the only functions (in your system) which physically access the sdisk.

*Part 3.   The third part of this project requires that you implement a simple shell that uses your file system. This part of the project will require you to implement the class Shell along with member functions. The interface for the class should include :

class Shell: public Filesys



{




Public :




Shell(string filename, int blocksize, int numberofblocks);




int dir();// lists all files




int add(string file);// add a new file using input from the keyboard




int del(string file);// deletes the file




int type(string file);//lists the contents of file




int copy(string file1, string file2);//copies file1 to file2




};




An explanation of the member functions follows :

  • Shell(string filename, int blocksize, int numberofblocks): This will create a shell object using the Filesys on the file filename.
  • int dir(): This will list all the files in the root directory.
  • int add(string file): add a new file using input from the keyboard
  • int del(string file): deletes the file
  • int type(string file): lists the contents of file
  • int copy(string file1, string file2): copies file1 to file2

IMPLEMENTATION GUIDELINES :

See the figure 4  (what I attached below) for the ls function of Filesys.

See the figure 5 (what I attached below) for dir function of Shell. 

See the figure 6 (what I attached below)  for main program of Shell.

*Part 4.  In this part of the project, you are going to create a database system with a single table which uses the file system from Project II. The input file will consist of records associated with Art History. The data file you will use as input consists of records with the following format: The data (180 records) is in date.txt file (what I attached below)

  • Date : 5 bytes
  • End : 5 bytes
  • Type : 8 bytes
  • Place : 15 bytes
  • Reference : 7 bytes
  • Description : variable

In the data file, an asterisk is also used to delimit each field and the last character of each record is an asterisk. The width of any record is never greater than 120 bytes. Therefore you can block the data accordingly. This part of the project will require you to implement the following class:

Class Table : Public Filesys



{



Public :



Table(string diskname,int blocksize,int numberofblocks, string flatfile, string indexfile);



int Build_Table(string input_file);



int Search(string value);



Private :



string flatfile;



string indexfile;



int IndexSearch(string value);



};



The member functions are specified as follows :

  • Table(diskname,blocksize,numberofblocks,flatfile,indexfile)
    This constructor creates the table object. It creates the new (empty) files flatfile and indexfile in the file system on the Sdisk using diskname.
  • Build_Table(input_file)
    This module will read records from the input file (the raw data file described above), add the records to the flatfile and create index records consisting of the date and block number, and then add the index records to the index file. (Note that index records will have 10 bytes .. 5 bytes for the date and 5 bytes for the block number.)
  • Search(value)
    This module accepts a key value, and searches the index file with a call to IndexSearch for the record where the date matches the specified value. IndexSearch returns the blocknumber of the block in the flat file where the target record is located. This block should then be read and the record displayed.
  • IndexSearch(value)
    This module accepts a key value, and searches the index file indexfile for the record where the date matches the specified value. IndexSearch then returns the block number key of the index record where the match occurs.

See the figure 7 (what I attached below) for the main program of Shell which includes a search command.

Benchmark – Connecting the Community Through Technology

 

When seeking a child care facility to which to entrust their children, families do extensive research to find a location that works best for them. Parents can use the handbook of a child care facility to learn about the procedures and expectations of the facility to assist them in selecting the best placement for their children.

For this assignment, you will create a handbook for a child care facility you plan to open. The purpose of the handbook is to provide prospective families with information about the center.

You may use information from any of your previous assignments in this course to assist you in building the content of your handbook (incorporating any constructive feedback you may have received from your instructor).

Include information for each of the following:

School Philosophy, Mission, and Vision

Readiness for Learning

  • Based on the digital handouts created in Topic 1, write an explanation of how you will evaluate each child’s readiness for learning (cognitive, linguistic, social, emotional, and/or physical).

Instructional Planning

  • A sample lesson plan on the topic of your choice as an example of instruction you would provide to the children in a specific age range. Be sure the lesson plan addresses young children’s characteristics and needs, including strengths, interests, and needs that enable each student to advance and accelerate his or her learning.

Using the “Safety Considerations Table and Checklist,” determine safety policies on the following:

  • Daily schedule – pick-up and drop off processes, monitoring attendance, lunch/snacks, and naps
  • Safe use of technology
  • Fire safety and evacuation

Nutrition

  • Based on what you learned about nutritional practices in Topic 4, create a guideline for meals/snacks for one age group (0-6 months, 7-11 months, 1 year-olds, 2-year-olds, or 3- and 4-year-olds) that you could present to families.

Health policies on the following:

  • Illness
  • Screenings
  • Immunization information
  • Allergies
  • Medication

Community

  • Communication and collaboration with families/volunteers that allow others to    participate in the children’s development and learning.

Support your handbook with 3-5 scholarly references.

Prepare this assignment according to the guidelines found in the APA Style Guide, located in the Student Success Center. An abstract is not required.

This assignment uses a rubric. Review the rubric prior to beginning the assignment to become familiar with the expectations for successful completion.

You are required to submit this assignment to LopesWrite. Refer to the LopesWrite Technical Support articles for assistance.

IT206: Design and Analysis of Algorithms week 1

 

Dear Students,
After you review Chapter 1 in your textbook and review all course materials attached below please answer the following question.

Assignment Question :   Design and write an algorithm to find all the common elements in two sorted lists of numbers. For example, for the lists 2, 5, 5, 5 and 2, 2, 3, 5, 5, 7, the output should be 2, 5, 5. What is the maximum number of comparisons your algorithm makes if the lengths of the two given lists are m and n, respectively?

_____________________________________________

You are required to respond to the assignment question posted above. Copying responses from another student or from the Internet is considered plagiarism even when changing a few words. When supporting your response you are required to provide at least one supporting reference with proper citation. Your response will be reviewed by Unicheck, the plagiarism tool synced to Canvas. Unicheck will submit a similarity report a few minutes after you post your assignment. If the similarity index is above 30%, please revise and resubmit your assignment after you cite the sources properly to avoid plagiarism.  Please review the PowerPoint slides explaining how to avoid plagiarism and post your assignment accordingly. Even a single plagiarized statement will not be tolerated. You must cite your sources properly by using APA writing format. 

Annotated Biblography

Using APA format, find at least 10 or more peer-reviewed sources (from industry articles,

journals, academic and professional textbooks, and case studies) which will support the topic of “Instagram use frequency and its impact on Psychological Well-being in Women”. Include them as references in APA format,

write a summary of each article considered. At the end of your summary indicate the

usefulness of the article in support of your Final Project Paper.

Remember, that within this Final Project Paper you will need to cite from each and every

source in your references. You may not use Wikipedia or Webopedia as a reference.

The Final Project must be a research paper using statistical techniques that has been

approved by the instructor, using knowledge gained in the course.

Note:

An annotated bibliography is a list of citations to books, articles, and documents. Each citation

is followed by a brief (usually about 150 words) descriptive and evaluative paragraph,

the annotation. The purpose of the annotation is to inform the reader of the relevance, accuracy,

and quality of the sources cited

Steps to Creating an Annotated Bibliography

1. Find sources related to your topic

2. Critically read and evaluate sources.

3. Create the proper APA citation.

4. Below the citation write your annotation.

DBA 701 4.2

  

4.2 Discussion:  Writing Exercise – Measurement

 
 

Getting Started

Writing Exercise

The chapter reading explores the role and importance of measurement in research. Although your ADP may not require a specific statistical methodology, it is necessary to understand how researchers use measurement to explore a problem or issue and support their findings. There are many statistical measurements. You may have studied statistics previously and will encounter this information in your doctoral program. Either way, the aim of this assignment is simply to help you understand the purpose without having to deal with the numbers or calculations. Think of it conceptually and you will have more than an adequate understanding of the role measurement plays in research.  

Upon successful completion of this discussion, you will be able to:

  • Evaluate the measurement strategy used by article authors.
  • Find additional articles that measure a similar phenomenon.

Background Information

Research often involves hundreds or thousands of pieces of data. Information can be compiled for many different variables, and computer programs can be used to model the relationships between them. From their reading of prior studies, social scientists bring a deeper theoretical understanding of the many constraints that shape human behavior, which informs their sampling, measurements, and analyses. Then, as they compose their final reports, researchers describe their findings with precision and caution rather than speaking in hyperbole. All of this is, arguably, far superior to ordinary human inquiry (Harris, 2014).

References

Harris, S. R. (2014). How to critique journal articles in the social sciences. SAGE.

Instructions

  1. Review the rubric to make sure you understand the criteria for earning your grade. 
  2. Read Chapter 5 of How to Critique Journal Articles in the Social Sciences.
  3. Follow the instructions for Exercise 5.2 and write response (300-400 words) answering the questions posed in the text.
  4. Because this is a writing exercise, focus on generating clear ideas rather than a formal, structured response. 
  5. Use APA format for all in-text citations and references and Grammarly to ensure your submission is free of writing errors.  In addition to your APA-formatted reference, please provide the OCLS permalink to any article you include in your post.
  6. Post your initial response by the end of day 4 of the workshop. 
  7. Read and respond to at least two of your classmates’ postings, as well as any follow-up instructor questions directed at you, by the end of the workshop. 
  8. Your postings are interactions with your classmates and instructor that should facilitate engaging dialogue and provide evidence of critical thinking. For this discussion, focus on the following:
    1. Extension: Expand the discussion.
    2. Challenge: Interrogate assumptions, conclusions or interpretations.
    3. Relational: Make comparisons or contrasts of themes, ideas, or issues.
    4. Clarification: Provide clarification to classmates’ questions and provide insight into the discussion.

Review the associated rubric

APA 7th Edition, 300-400 words

ORGCB/535 COMPETENCY 3 Reflection

Competency 3: Align human resource systems with business strategies.This reflection activity is comprised of two sections collectively totaling a minimum of 500 words. Complete your reflections by responding to all prompts.

Impactful Changes

The business environment changes so quickly that advice is often outdated. Assume you are a consultant. Based on your experience and readings, think about a few significant changes you see in the business environment today. Analyze 3 changes that you believe will have the most impactful change for organizations. Answer the following:

  • What impacts will each of those changes have on HRM? 
  • What should an HR Director be doing today to be ready for the impacts of each of those changes? 
Impactful Changes to the Global Environment

An organization hired you because they are planning to do business in one of the countries listed in Table 15.2., which means their business environment will be changing. Based on your answers to the questions above on the impact of changes in the business environment, answer the questions below. 

  • Which of those countries fascinates you the most, and why?
  • According to the information in that table, what are the key cultural differences between the United States and the country you chose?
  • In your chosen country, how effective do you think each of the following practices will be, and why?
  • Extensive assessment of individual abilities for selection 
  • Individually-based appraisal systems
  • Suggestion systems
  • Self-managing work teams

Submit your reflection.

Show You Care

 

Instructions
Develop, in detail,  a situation in which a health care worker might be confronted with ethical problems related to patients and prescription drug use OR patients in a state of poverty.

  • Your scenario must be original to you and this assignment. It cannot be from the discussion boards in this class or any other previous forum.
  • Articulate (and then assess) the ethical solutions that can found using “care” (care-based ethics) and “rights” ethics to those problems.
  • Assessment must ask if the solutions are flawed, practicable, persuasive, etc.
  • What health care technology is involved in the situation?What moral guidelines for using that kind of healthcare technology should be used there? Explore such guidelines also using utilitarianism, Kantian deontology, ethical egoism, or social contract ethics.
  • Say how social technologies such as blogs, crowdfunding, online encyclopedias can be used in either case. What moral guidelines for using that kind of healthcare technology should be used there? Develop such guidelines also using utilitarianism, Kantian deontology, ethical egoism, or social contract ethics.

You should not be using any text you used in a discussion board or assignment for this class or any previous class.

Cite the textbook and incorporate outside sources, including citations.

Writing Requirements (APA format)

  • Length: 3-4 pages (not including title page or references page)
  • 1-inch margins
  • Double spaced
  • 12-point Times New Roman font
  • Title page
  • References page (minimum of 2 scholarly sources)

Module 2 Assignment

 QSO 320 Module Two Assignment Guidelines and Rubric Prompt:

 For this assignment, you will continue to use the workbook titled Labor Hours that you created for your Module One assignment. You will be looking at data related to employees who are full-time staff members and those who you hire as-needed on a contract basis. You will use the IF function to isolate the data for each status (full-time or contract), and then you will use a pivot table and a pie chart to demonstrate different ways of displaying the data. Finally, you will program a spreadsheet to calculate mean, median, and mode, and you will provide a summary about these measures of central tendency. Note: For Parts 2 through 4 of this assignment (and for several assignments moving forward in this course), you are asked to provide a rationale statement. This is so your instructor can understand your thought process in case there is an error in your results. For example, if your assignment is to set up a spreadsheet to track each employee’s hours and costs, and then sum those hours, your rationale statement might look something like this: “Create a table which identifies each person, their labor rate, and their hours worked. The table sums the hours worked and then multiplies the hours times the labor rate. The sums for each employee are then totaled.” To complete this assignment, complete the following steps in your Labor Hours workbook: 

1. On the Data tab, do the following: a) Add a column titled “Status.” b) Using the information from the last bullet of the scenario box below, mark each employee as either F for full-time or C for contract. 

2. Create a new tab (worksheet) labeled IF, and set up an empty table like the one in the Data tab. Populate the table by linking the cells to the data in the Data tab. Use the IF function to complete the items below: a) Sum the costs incurred by full-time employees. b) Sum the cost incurred by contract employees. c) Provide a rationale statement. The statement may be typed directly into the Excel document underneath the chart. 

3. Create a new tab labeled Pivot & Pie. From the data in the IF tab, create a pivot table and a pie chart that shows the following: a) Show the employee status. b) Show the employee name c) Show the employee cost. d) Provide a rationale statement. 

4. Create a new tab labeled MMM, and set up an empty table like the one in the Data tab. Populate the table by linking the cells to the data in the Data tab, then complete the following: a) Calculate the mean, median, and mode of the hourly wages. Then, multiply the total project hours times each one. b) Provide a written rationale statement for how you calculated mean, median, and mode. c) Provide a summary describing how each measure (mean, median, and mode) could be used for this project, and include your recommendation on which is the most appropriate and why.  

Scenario 

You are examining labor costs for a construction project using eight employees: 

The eight employees’ names are: Smith, Rodriquez, Daniel, Eli, Lee, Kim, Buster, and Green. 

Each employee worked eight hours a day for five days.  

The employees’ wages per hour are as follows: Smith: $8.95 Rodriguez: $11 Daniel: $14 Eli: $16 Lee: $19 Kim: $20 Buster: $25 Green $40  

Green, Kim, Eli, and Lee are full-time employees, and the others are contract employees. 

Rubric Guidelines for Submission: Your assignment must be submitted as the same Microsoft Excel document you used for the Module One assignment. Use 11-point Calibri font.  

Personal reflection paper

 

Provide a reflection of at least 500 words (or 2 pages double spaced) of how the knowledge, skills, or theories of this course have been applied or could be applied, in a practical manner to your current work environment. If you are not currently working, share times when you have or could observe these theories and knowledge could be applied to an employment opportunity in your field of study. 

course –  New Tech Bus Leaders 

Studied about –  

Measuring Information Systems Performance as Competitive Advantages

Predicting Hardware & Software Futures

Research paper in supply chain (blockchain technology)

 VR/AR/MR Technologies in Enterprise Systems

The Role of the Blockchain Tech in Information System Security &

Requirements:

Provide a 500 word (or 2 pages double spaced) minimum reflection.

Use of proper APA formatting and citations. If supporting evidence from outside resources is used those must be properly cited.

Share a personal connection that identifies specific knowledge and theories from this course.

Demonstrate a connection to your current work environment. If you are not employed, demonstrate a connection to your desired work environment. 

You should NOT provide an overview of the assignments assigned in the course. The assignment asks that you reflect how the knowledge and skills obtained through meeting course objectives were applied or could be applied in the workplace. 

The assignment will be graded using the following criteria:

(Maximum # of Points Per Area)

Grammar/Spelling/Citation: Make sure all work is grammatically correct, spelling is 100% accurate, and cite all sources in-text/at the end of the paper where applicable. 

Technical Connection: Make the paper relevant to the course and its connection with your current classwork. Discuss how what you have learned can be applied to your work or future work.