Menu

Project Part 1 Introduction C Programming Language File O Overview Part 1 Project Consisti Q43819871

Project Part 1: Introduction to C Programming Language, and FileI/O

Overview:

This is Part 1 of a project consisting of four parts. Part 1 ofthe project is worth 5% of your final course grade. Refer to yourSuggested Course Schedule to confirm your Part 1 due date.

Read all project directions and questions before you beginpreparing your answers and consult your Open Learning FacultyMember if you have any questions about the project.

The overall project in this course is to design and develop asimple data link layer protocol. Each part of the project will helpyou to successfully complete the overall project in this course.Because most network programs require a fast processing language,they use C programming languages. For this reason the C programminglanguage is used in this project.

Objective:

It is assumed that you know Java programming language, but youmay not have used C programming language before. The purpose ofPart 1 in this Project is to introduce and provide you with someexperience and comfort in using C programming language.

Instructions:

1. Read the section called Project Part 1: BackgroundInformation. You will need this information to complete Part 1 ofthe project and to understand the project computer requirements.This section describes the similarities and differences between Cand Java, gives an example of code that will allow you to printmessages, and explains how to manipulate files with a samplecode.

2. Read all project directions before you begin preparing youranswers. Feel free to consult your Open Learning Faculty Member ifyou have any questions about the project.

3. Write programs as follows:

a. Implement the following functions in a file without usingstrcpy(), strlen() and strcat():

i. void string_copy (char *destination, char *source)

ii. int string_length (char *s)

iii. void string_cat (char *destination, char *source)

b. Implement a program in another file, which:

i. Receives a string from the user as an argument;

ii. Stores the characters of your student number one by one in achar array variable;

iii. Prints the above two variables and length of strings (fromi and ii), using one printf() statement;

and iv. Includes examples to test the above 3 functions, withproper assignments and printf() statements.

4. Write a program that copies a file to another:

i. The two file names will be given to the program as argumentsfrom the user.

ii. The first file will be copied into the second file.

iii. You should compare the two files to see if they are thesame.

iv. Do not use FILE functions. You must use open(), close(),read() and write().

The above assignments will help you to use strings properly andto do file manipulation. The basic method of using files in Cprograms and networking protocols is similar. This assignment willhelp you to move on to the next parts of the project.

Requirements for Project Part 1:

You need to submit the programs with screenshots showing howyour programs are compiled and run. Please refer to the generalguidelines for preparing and submitting your project found underthe Assignments Overview tab of your course.

Expert Answer


Answer to Project Part 1: Introduction to C Programming Language, and File I/O Overview: This is Part 1 of a project consisting of…

OR