Write a makefile that compiles the code

Assignment Help C/C++ Programming
Reference no: EM133201505

C++ Programming,

Each function should be placed in a file of its own, called function-x-x.cpp, where x-x refers to the problem number. Note that you have to write the main function and call each of these functions with some parameters to ensure they work! The matching main function must be placed in a file called main-x-x.cpp.

1-3* You are writing a "pretty printer" program that prints out student transcripts for all students enrolled in a degree. The students and their grades are encoded in the same three array combination used in 1-2.

!! Give a  program that obtains the values for the courses, students, and report_card arrays from the standard input. In your program, you will need to focus also on usability: as you can imagine, it will get pretty tedious to input a large number of students, so designing and implementing the best text-based interface is important!

Makefile practice: For this programme, write a Makefile that compiles the code for you. When you type 'make', your program should be recompiled to a new executable only if the source code has changed.

Redirection testing: Unix provides a handy way to take input from a file and give it to a program on standard input. Let's say your program us called pretPrint. You create a text file, let's call it printTest.txt, that contains the values for the courses, students, and report_card arrays that you would usually have to type in. Now we can use the "<" operator to tell Unix to take the contents of the file and connect it to the standard input of your program, like this.

./pretPrint < printTest.txt

You can probably see that, with the automation provided by Makefiles, and the ability to capture text to put back in to a program as if you typed it, you can write make commands that will allow you to test your code very easily.

Reference no: EM133201505

Questions Cloud

Financial and ethical implications of otis decision : Valencia College - Determine if Otis should select a sole proprietorship, limited liability company, or corporation. Explain why the form of business
How your knowledge of biostatistics might inform : Pick one of the above scenarios and in that context, explain how your knowledge of biostatistics might inform how you address the situation
Perform encryption and decryption : 1. Write a Java or C++ program to perform encryption and decryption using the following algorithms:
Explain the type of unemployment : In a multi-paragraph essay, apply the theories of unemployment to explain the type of unemployment that each of these individuals is facing. Miami Dade College.
Write a makefile that compiles the code : Each function should be placed in a file of its own, called function-x-x.cpp, where x-x refers to the problem number. Note that you have to write the main funct
Discuss at least three roles water plays in life. : Grossmont College-Discuss at least three roles water plays in life.
Research a sustainable tourism : Topic: Sustainable Tourism. This assignment must be thoroughly researched using appropriate outside literature resources.
Biosphere and population ecology : BIO 120-Grossmont College-Draw a diagram that depicts some effects of intense solar radiation near the equator on global patterns of rainfall and winds.
Community ecology and biomes : BIO 120-Grossmont College-Name five types of interspecific interactions, note effect (+/-) on each species involved, provide example for type of interaction.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  A run is a sequence of adjacent repeated val

A   run   is   a   sequence   of   adjacent   repeated   values.   Using   an   array,   write   a   program   that   generates   a   sequence   of

  Write a program using above data file

Write a program using above data file (must prompt user for file names- input and output) to read in the critical path information and write reports.  Print reports (3 reports) to an output file as below:Print a project completion timetable that list..

  How does the choice affect the user of the class

Write a partial C++ class definition not implementation that contains the public interface of the Date class described in Exercise R9.2.

  Write a program that prompts for and gets a student name

Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) the number using a function.

  What are the two floating point types in cpp

What are the two floating point types in C++ and how do they differ? How can you use the setprecision() and setiosflags() manipulators to control the output of decimal numbers?

  Define inheritance and polymorphism

Inheritance and Polymorphism, The objective of this programming assignment is to experience the use of inheritance in Java and to see how polymorphism works with inheritance in Java.

  Convert each 1-d array character into an integer

Declare a single dimensional array of 65 characters. Convert each character into an integer and store it in a linked list.

  Write a method named negative sum

Write a method named negativeSum that accepts a Scanner as a parameter reading input from a file containing a series of integers, and determine whether the sum starting from the first number is ever negative

  Using a for loop, print the contents of the array.

Write the code to update every other element within the array with a lowercase x.

  Complexity of quick sort algorithm

Write a c program to experimentally compare the O() complexities of the provided quick sort algorithm

  Write a template function maxn that takes as its arguments

Write a template function maxn() that takes as its arguments an array of items of type T and an integer representing the number of elements in the array.

  Implement a binary search function

How many sequence fragments in dataset 1 are also in dataset 2 and What is the ‘big O' notation of your search (linear / quadratic / cubic / etc)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd