COMP2510 Lab 1 Solved

30.00 $

Category:

Description

5/5 - (1 vote)

Requirements
lab1.c skeleton file is created for you. Write a function that prints out a multiplication table for numbers starting from 0 to n. The signature of the function is:

void printMultiplicationTable(int n)

1. A sample output format with input 2 is presented below, but use any form of loop to do this
>> ./a.out 2
X 0 1 2
0 0 0 0
1 0 1 2
2 0 2 4
2. Note that you are getting the value n from the command line argument
3. The maximum value of n will be 8
4. You will implement the main function
5. The print of the multiplication table occurs inside printMultiplicationTable function

Some Useful Guides
• We will use github extensively. Please review github basics here:. https://github.com/git-guides
• Basic Linux commands: https://ubuntu.com/tutorials/command-line-forbeginners#1-overview

Restrictions
• Do NOT modify main and printMultiplicationTable function signatures
• Only use standard libraries listed in Learning Hub
• Only <executable> n will be used to run your program.

Grading
• (1 point) Correctly use git/GitHub and the repository following the lab handout
• (1 point) Generate a correct solution to the problem(s) in this lab
• (1 point) Correctly format outputs

Submission Files
• You must deliver only one .c file named: lab1.c
• The file that you send should be a .c file (not .txt, not .cpp or any other type)
• lab1.c (do not capitalize)
• AXXXX.txt (empty file, but with your A number as file name)
• Only push these two files, no other files
• Github: https://classroom.github.com/a/MTNe7It1

  • Lab-1-knr8mc.zip