Question: CS - 2 8 2 0 : Programming Practices using linux table [ [ , Question,Possible points, ] , [ , Q 1 ,

CS-2820: Programming Practices
using linux
\table[[,Question,Possible points,],[,Q1,25,],[,Q2,25,],[,Total,50,],[{
\table[[Late submissions Policy:],[For the first 7 days after the submission deadline, there will be a penalty of 10% deducted per day. After],[the 7 th day, no late submission would be accepted.]]}],[]]
Q1.(25 points)
Write a C program to perform the following:
Read a number from the user.
Print out a message indicating if the entered number is a prime number or not. If not prime it prints out its factors dividing the number (i.e. a number 12 has factors: 1,2,3,4,6,12)
Q2.(25 points)
Create a makefile to be used with the make command for the following project files to compile only the files that need recompilation (i.e., the source files that don't have a .o object file generated for them yet) instead of recompiling every file to build the executable:
Source files:
A functions.h that contains the declaration of:
void math_function1(), void math_function2(), void string_function1(), void string_function2()
A math_functions.c that contains the implementations of the math functions: math_function1(), math_function2()
A string_functions.c that contains the implementations of the string functions: string_function1(), string_function2()
A main function that exists in the main.c file that include functions.h
CS - 2 8 2 0 : Programming Practices using linux

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!