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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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