Program in linux use the editors in the linux environment


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.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Program in linux use the editors in the linux environment
Reference No:- TGS02448115

Now Priced at $20 (50% Discount)

Recommended (93%)

Rated (4.5/5)