C++ programming in linux

Assignment Help Basic Computer Science
Reference no: EM131638780

C++ Programming in Linux

Program Objective:

1. This program is intended to get acquainted with Linux (or refresh programming experience). This will be a short interactive program that will get me started an editor in Linux (pico, vi, emacs, etc.).

2. It will get me through compiling, linking, and running a program. You will write the program in C++

Editing: Program in Linux, use the editors in the Linux environment . Use the pico editor. Also available are vi and emacs editors.

Compiling: The compiler is g++. This can be used from the command prompt. Sample compilation is

C++ program: g++ -o test test.cpp (source program is test.cpp)

Executing: Here, test is the executable file name, and the execution is as follows.

C++ program: . /test

Program Description:

I am trying to make a small Linux program that will calculate the average of the following five grades: 77, 85, 80, 94, and 97. The program does not have to accept these grades, they may be hard coded into the program.

You must compute the average as a separate function such as average(sum, numGrades).

The program should print out the average, and then terminate.

Program requirements:

Enough documentation (either embedded in the code with comments, or external) to explain how you parsed the program and to follow what you expect to happen. Source code for your program file name linuxfc.cpp.

Reference no: EM131638780

Questions Cloud

Would us supreme court have jurisdiction to hear the case : Suppose that Johnson had burned a Texas state flag instead of the U.S. flag. Would the U.S. Supreme Court have jurisdiction to hear the case?
Implement appropriate treatment for exacerbation of copd : Implement appropriate treatment for exacerbation of COPD, Demonstrate correct use of oxygen
Predict the brain weight for the species : Prediction. The line on the scatterplot in Figure is the least-squares regression line for predicting brain weight from body weight.
Aligning security with business objectives : The security policy of an organization is not an one-for-all solution; it varies with the organization. As you begin your exploration of information.
C++ programming in linux : This program is intended to get acquainted with Linux (or refresh programming experience). This will be a short interactive program that will get me started.
Finished medicating a patient with a narcotic injection : finished medicating a patient with a narcotic injection with a dose greater than ordered
Description of the role of it strategy in acquiring : A description of the role of IT strategy in acquiring business driven information systems -
Presentation for the executive leadership team of capratek : Design a narrated PowerPoint presentation for the executive leadership team of CapraTek, outlining your recommendations for addressing the problems
Prepare a contribution margin income statement : Prepare a contribution margin income statement for Blanchard Company at the break-even point

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Believe including images in documents

Explain whether or not you believe including images in documents is a professional option when creating a document.

  Create a spreadsheet averaging the list of ctu classes

Imagine that you are currently enrolled in three CTU classes: UNIV104, IT254, and MATH102. In this project, you will create a spreadsheet averaging the list of CTU classes that you are currently enrolled in.

  Analyze use of databases in business environment

Create the 2-3 page memorandum analyzing use of databases in the business environment. Include what database applications must be used: Microsoft Access, IBM DB2, Oracle, etc.

  Perform a risk assessment for the university

Your organisation has been hired to perform a risk assessment for the University. In your own words what is a risk assessment and why is it important? Perform a vulnerability assessment for the database which was attacked.

  Significant factors contributing to mmcc-s success

Write down most significant factors contributing to MMCC's success with its new, secure, self-managed network? Describe the reasons for your choices.

  Conducting additional research

Identify a firm from any one of the above scenarios. Based on your readings and upon conducting additional research, suggest two data transmission methods that your chosen firm could use. Explain the risks associated with each alternative. Which m..

  Waiting list exists for right to purchase season tickets

Philadelphia Flyers games are frequently sold out, and a waiting list exists for the right to purchase season tickets. What would be the welfare effects of a $1 tax on tickets? Explain

  Poisson or the exponential distributions

Say that a restaurant is trying to figure out the efficiency of its servers and discovers the number of parties served by one server in an hour period follows a Poisson distribution with a mean of 12. Include cdf notation when appropriate. You may..

  Define an array named people

Your program should count the number of each 1, 2, 3, and 4 in the array and display a list of how many infants, children, teenagers, and adults were at the school function.

  What are the major similarities and differences

Compare the Ma Ple algorithm (Section 11.2.3) with the frequent closed item set mining algorithm, CLOSET (Pei, Han, and Mao [PHM00]). What are the major similarities and differences?

  Database concepts

What is a DBMS driver, and what purpose does it serve? Are there different types/varieties?

  What is the npv

At the end of the year, the firm takes its 12% return and sells the original investment for $100, so the total cash inflow at the end of Year 1 is $100 plus the cash return. If the firm has a 12% cost of capital, what is the NPV (the net present v..

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