Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Programming Language Expert

Assignment - Practical

Please bring your laptop to the one or more of the pracs this week, because this week I will be helping students to set up their working environment with which they will complete their assignments.

The following activities are planned, and we will see how far we can get with the time available to us:-

1. Installation of a virtualbox virtual machine onto your laptop. (Some people will already have their own and wont need this.)

2. We will learn how to use the basic tools for creating, compiling, running and debugging C programs :-

- editor
- compiler
- make
- debugger
- man pages

3. Installation and use of CscNetLib.

Computer Network Programming

Using Git

Using Git for USQ CSC8415

Version Management in General

Software development teams use version management software. It organizes the distribution, editing, and merging of code as programmers develop it. The version management provides the following benefits-
- It provides change history of the code, and the ability to revert back to a version that works.
- It provides storage management so that not much would get lost if a programmer lost his/her laptop or had a hard drive crash.
- It organizes the distribution, editing, and merging of code for programmers of a team, so that their work
- It provides support for merging edited code hock into the main code pool.

What gets stored in the repository

Normally it is only the original source cock that is stored in a repository. Files that are generated from the original source code are not stored. For example, in a C programming project, might have the following types or files as shown in Table

file Type File purpose Is ft stared?
Makefile Automates the compilation of code into an executable project. yes
*.h Header files - tells the rest of the code files about the corresponding .c files Yes
*.c The code that gets compiled. yes
*.o The compiled code corresponding to each individual .c file. no
Executable The code that runs, which is made from the .o files. no
tags An index into your code that assists the code editing, created by a program called ctags. no
output data Output from the executable program. no
input data Test data for resting the executable program yes

Version Management for CSC8415

Students are required to use version management for the development of their assignments. The main benefit to students is that they gain version management skills, which would be useful in any real software development.

Markers in this subject will be able to see whether the student is properly employing the version management software and also how the software was actually developed. This can also help the marker to detect plagiarism.

You will use Git for this course. The information in this document should suffice to complete your assignments, but will not teach you Git in any depth. Here is an on-line book on Cit. and you are strongly encouraged to read it in order to learn inure.

Creating the Git Repository
You should check out your repository before you begin working on your assignment code.

Initially creating the repository here as a USQ student is a little different than it would be outside of USQ. The repository does not actually exist until you create it.

Telling Git about your identity
Now need to configure Git, if you have not already done so. Assuming that your name was John Doe, then you might type the following.

$ git config user-name "John Doe"

$ git config user.email johndoeeexample.com

$ git config http.sslVerify false

Adding directories and files to the repository

You should have created a mostly empty directory called "Project-. You should immediately create three directories within this directory:-

$ mkdir Ass0 Ass1 Ass2

These files are for each of your assignments:-

- "Ass0". This is where your marker will expect to find the code for your assignment 0.
- "Ass1.". This is where your marker will expect to find the code for your assignment 1.
- "Ass2. This is where your marker will expect to find the code for your assignment 2.

Sady, git ignore; empty directories, so you need to place something in each directory:-

$ touch Ass0/temp1.txt Assl/temp1.txt Ass2/temp1.txt

Now you need to add these new directories to the repository:-

$ git add Ass0 Ass1 Ass2
Whenever you create a file that should go into the repository. then you should immediately add it in. e.g.

$ cd Ass0

$ touch makefile guestion2.c

$ git add makefile question2.c

Remember to only add in the source files, and not film that are generated from them. Please refer to table 1.

Moving, copying or deleting files.

$ git my oldName newName

$ git cp oldFile newPile

$ git rm oldFile

Committing to the local repository on your computer
Do this often while you are working on your assignment:- $ git commit -a -m 'My commit message'

Please replate 'My commit message' With a meaningful message stating what you have done since your last commit.this often while you are
working on your assignment

Pushing changes back into the repository on Tau

The marker cannot see what is on your local bard drive. You need to push your work back up to Tau.

The first time that you push, you may need to tell Gil what branch to commit:-

$ git push origin master

On subsequent pushes, the following should suffice:-

$ git push

csc_abc_prepare( ....

csc_abc_doIT( ...

exit (0);

}

Questions

1. What would be the first argument of csc_abc_prepare() and what would be the first argument of csc_abc_dolt() ?

2. Testing reveals that the program is leaking memory. What is missing from the program? Provide the missing line of code and indicate
where it goes in the program.

3. The name of each library routine each has 3 parts, explain the purpose of each of the three parts of the routine name.

4. The hypothetical code will later be modified to call the routine csc_abcgetStr(), which returns a string, and has the return type "const char *". What does the "const" mean?

Should the programmer explicitly free the string after using it?

5. Why do servers require configuration and logging?

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M92399973
  • Price:- $70

Guranteed 36 Hours Delivery, In Price:- $70

Have any Question?


Related Questions in Programming Language

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Task silly name testeroverviewcontrol flow allows us to

Task: Silly Name Tester Overview Control flow allows us to alter the order in which our programs execute. Building on our knowledge of variables, we can now use control flow to create programs that perform more than just ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Assignment task -q1 a the fibonacci numbers are the numbers

Assignment Task - Q1. (a) The Fibonacci numbers are the numbers in the following integer sequence, called the Fibonacci sequence, and are characterised by the fact that every number after the first two is the sum of the ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Question - create a microsoft word macro using vba visual

Question - Create a Microsoft Word macro using VBA (Visual Basic for Applications). Name the macro "highlight." The macro should highlight every third line of text in a document. (Imagine creating highlighting that will ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Overviewthis tasks provides you an opportunity to get

Overview This tasks provides you an opportunity to get feedback on your Learning Summary Report. The Learning Summary Report outlines how the work you have completed demonstrates that you have met all of the unit's learn ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As