Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

how would i do a makefile for this code? Using putty program and its C programming Starting with programming assignment P02, each program must have

how would i do a makefile for this code? Using putty program and its C programming image text in transcribed
image text in transcribed
Starting with programming assignment P02, each program must have a makefile that contains directives to the make command. The makefile directives will have a target for each .c that will create the object file, a target to create the executable (binary) file using the object files created by the object targets and a target called clean to remove all object files. An example of a makefile is in your home directory in the demos subdirectory. Use it as a template. More help/tutorials for makefile are available at makefile_Help.shtml and Wikipedia - makefile Program Name myrand Description The program will produce a table of unique sequence of random integers. Requirements In the p02 directory create the subdirectory exo Create the c program myrand.c in the p02/ex0 directory. Using the format and words displayed in the Example of Output, the program will do the following: Displays a message that indicates what the program will do. Asks the user for how many rows of random numbers are to be produced Produce a table of random numbers as follows: The number of rows will be based on the value entered by the users There will be 5 columns of numbers The numbers will be right justified Ends with a thank you message. Make sure that a unique set of numbers is created each time the program runs. Hint: You may need the functions: srand time(NULL) The man command on CISWEB may be of help. Then again there is google! . . . Example of Output Welcome to myrand. The program will produce a five column table of random numbers. Please enter the number of rows you would like: 5 user enters 5 1957747793 1189641421 2044897763 1303455736 336465782 1714636915 596516649 1102520059 304089172 1726956429 1681692777 1649760492 783368690 1540383426 294702567 846930886 719885386 1350490027 1365180540 521595368 1804289383 424238335 1025202362 1967513926 35005211 Thank you for using myrand. Bye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo, Susan D. Urban, Karen C. Davis

4th Edition

1284231585, 978-1284231588

More Books

Students also viewed these Databases questions

Question

What tools might be helpful?

Answered: 1 week ago