Question: Lab 2 In this lab. you will be practicing modular development with functions. Description Develop a program that repeatedly asks the user to provide a
Lab In this lab. you will be practicing modular development with functions. Description Develop a program that repeatedly asks the user to provide a positive integer and calculate the largest factor of it driver.cpp The driver handles the user interaction. It will give the largest factor for positive input and will stop asking on any input that is negative. libcpp The implementation file of the function to be used in the driver. libhpp The header file of the function to be used in the driver. makefile The makefle to enable the make commands to build your application. Run make to compile the driver executable, Run make clean to remove the generated files. This file is complete! Do not modify! Include in the submission.Sample run S Please input a positive integer input a negative value or zero to quit: The greatest factor not including self of this integer is: Please input a positive integer input a negative value or zero to quit: The greatest factor not including selt of this integer tsi Please input a positive integer input a negative value or zero to quit: The greatest factor not including sel of this integer : Please input a positive integer input a negative value or zero to quit: llye! Requirement Several files are provided for you to start with labzip. You must complete the incomplete hles following the best practice of modular development Make sure that your program will compile and run in the compatible environment of the SSH server. The grading will be done in this kind of environment,makefile driver: driver.o lib go $@ $: cpp gstdCC $@ $ clean: $RM driver
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
