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

  Need a flow chart /blue print showing all the steps

Need a flow chart /blue print showing all the steps below is in the process - ordering a drink at our large pools 1. customer wants drink

  Compute an estimate the principal eigenvalue for the matrix

Starting with a vector of three 1's, use power iteration to find an approximate value of the principal eigenvector.

  Calculate the volume and surface area of a sphere

Write a program to calculate the volume and surface area of a sphere from its radius, given as input. Here are some formulas

  Undirected graph representing a social network

You are given an undirected graph representing a social network. Nodes are users in the network, edges represent interactions between users (i.e., messages exchanged between them).

  Write a simple vocabulary builder to help someone learn

The function will use one parameter (object Clicked) to send in the 3D text word clicked by the user. If the user clicks on "gato," the cat will say "Si, si!" Otherwise, the cat should turn its head left and right (indicating that the choice was i..

  Calculate time required to transmit frame and receive

Suppose an 802.11 b station is configured to always reserve the channel with the RTS/CTS sequence. Suppose this station suddenly wants to transmit 1,000 bytes of data, and all other stations are idle at this time.

  What needs to be done to create database

Assume you have a customer who would like to track inventory including vendor (where the product comes from) and customer (who the product is sold to). What needs to be done to create this database?

  What are some alternatives to using xml

Discussion question, what are some alternatives to using XML and give an example of how you might store a customer record using XML.

  Internet may not make corporations obsolete

The Internet may not make corporations obsolete, but they will have to change their business models. Do you agree? Why or why not?

  Sources of power within an organization and power tactics

Carefully review the background materials regarding sources of power within an organization and power tactics. Examples of sources of power include reward power, coercive power, legitimate power, and expert power.

  Identify different methods of typing projects

Describe the skills or knowledge a project manager would need to work on a project in each of your categories.

  What is the dose response relationship

The main issues in this experiment are whether the amount of caffeine present affects the amount of adenine that can move from the blood to the brain, and if so, what is the dose response relationship. Analyze these data

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