Create a library. The library should contain two functions, Hello() and World(). Calling the Hello() function...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a library. The library should contain two functions, Hello() and World(). Calling the Hello() function should print out the string "Hello"; calling the World() function should print out the string "World." [7 points] a) Write a simple program that uses the library (testing the use of the library). b) Create your own makefile that tests for the correct working of the functions. It should define two dependency/command blocks as: • First block should give the dependencies for the object code file of the simple program that uses the library, as well as the command to compile the source code file into the object code file. • Second block should define the use of the linking stage command. Therefore, the executable file of your program, its object code file (.o) and library file (.a) would be the dependencies part of this block. Create a library. The library should contain two functions, Hello() and World(). Calling the Hello() function should print out the string "Hello"; calling the World() function should print out the string "World." [7 points] a) Write a simple program that uses the library (testing the use of the library). b) Create your own makefile that tests for the correct working of the functions. It should define two dependency/command blocks as: • First block should give the dependencies for the object code file of the simple program that uses the library, as well as the command to compile the source code file into the object code file. • Second block should define the use of the linking stage command. Therefore, the executable file of your program, its object code file (.o) and library file (.a) would be the dependencies part of this block.
Expert Answer:
Answer rating: 100% (QA)
To create a library containing the two functions Hello and World we need to create a header file and a source file Header file C ifndef MYLIBH define MYLIBH void Hellovoid void Worldvoid endif Source ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
What are the three market perception ratios and results for the state closing between 2021-2023 for Apple and Microsoft? It must include the calculations, formulas and analysis of said perception for...
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
A car costs 12,000. It will be kept for three years, and then sold for 3,000. Calculate the depreciation for each year using (a) the reducing balance method, using a depreciation rate of 35 per cent,...
-
Find the inverse Laplace transform of the following functions F(s) = e-s/ s + 1 F(s) = e-s/ s + 1 F(s) = 1- e 2s / s F(s) = 1- e 2s / s F(s) = 1- e s / s + 2
-
Brookfield Asset Management Inc. is a global publicly traded Canadian company. Brookfield's financial statements for its year ended December 31, 2014, are included at the end of this book....
-
Describe briefly how a schlieren optical visualization system (Fig. 11.4) works. How else might density changes in a fluid flow be made visible to the eye? Fig. 11.4 Shock wave Flow Airfoil
-
Marya Callais, a citizen of Florida, was walking along a busy street in Tallahassee, Florida, when a large crate flew off a passing truck and hit her, causing numerous injuries. She experienced a...
-
BMX Company has one employee. FICA Social Security taxes are 6.2% of the first $137,700 paid to its employee, and FICA Medicare taxes are 1.45% of gross pay. For BMX, its FUTA taxes are 0.6% and SUTA...
-
Bob Burley and his brother Buford ran the best restaurant in Dallas, Texas. Many out-of-towners would visit Dallas and go to Burleys Biscuits, Beef, and Veggies for a good wholesome meal. One thing...
-
Why is it important to implement segregation of duties in an ERP system? a. To cross-train employees in different departments b. To prevent users from making errors in their functional areas c. To...
-
Do you feel magnetic disks or SSDs (solid-state drives) are better to use with regard to speed and reliability? Why? If one of your tasks in your job was to recommend magnetic disks or SSDs for the...
-
(a) Write a MATLAB function that computes the two roots of a quadratic polynomial q(x) = x+bx+c with good precision. (b) Compare your computed results with MATLAB's built-in function roots ( [a b c])...
-
1 $5,000.00 deposited in an account earning 6.5%, for 8 years. Calculate the balance in 8 years. a. 8,274.98 b. 8,752.83 c. 8,917.39 d 9,235.36 A firm has net sales of $5,700,000, Cost of Goods Sold...
-
3. You work at a firm in a competitive market with market price = $250. The firm's cost function is C(q) = 10,000+ q + 0.5q a. (2 pts) What is the total cost of producing 50 units? b. (2 pts) What is...
-
Given the following declarations, what result is stored in each of the listed assignment statements (what is the value of iResult or fResult)? (1 pt each) int iResult, numl 15, num21 2; double...
-
The correct relationship between the boiling points of very dilute solution of AlCl3 (TK) and CaCl (TK) having the same molar concentration is (a) T = T (b) T > T (c) T > T (d) T T
-
Copy and complete the statement. 3800 m ? km =
-
When using the list class of Example 10.17, the typical C++ programmer will use a pointer type for generic parameter V, so that list_nodes point to the elements of the list. An alternative...
-
If you were writing a two-pass compiler, why might you choose a high level IF as the link between the front end and the back end? Why might you choose a medium-level IF?
-
Building on the outline of Example 10.28, write a program that illustrates the difference between copy constructors and operator= in C++. Your code should include examples of each situation in which...
-
Two projects of equal value have been evaluated using a multifactor productivity measure that combined labor-hours at \($30\) per hour and overhead expense calculated as 20% of labor expense for the...
-
One road-paving crew of six people worked 8 hours to pave 25 miles of two-lane road, while a smaller crew of four people worked 12 hours to pave 15 miles of four- lane road. Which crew was more...
-
The Bankston fulfilment center of Universal Logistics is a large warehouse that packs and ships customer orders from client on-line retailers. Five employees have been nominated for a productivity...
Study smarter with the SolutionInn App