Java/C/C++ Programming in Linux Program to refresh your programming experience

$18.00

Category:

Description

Java/C/C++ Programming in LinuxProgram Objective:
1. This program is intended to get you acquainted with Linux (or refresh yourprogramming experience).This will be a short interactive program that will get youstarted an editor in Linux (pico, vi, emacs, etc.)
.2. It will get you through compiling, linking, and running a program.
You may write theprogram in Java, C, or C++ – your choice.Editing: Program in Linux, use the editors in the Linux environment . There are a numberof ways this can be done. The easiest way is to use the pico editor.Also available are viand emacs editors.Compiling: The compiler is gcc(or g++ or javac). This can be used from the commandprompt. Sample compilation isFor C program:gcc –o test test.c(source program is test.c)For C++ program:g++ -o test test.cpp(source program is test.cpp)For Java program:javac test.java(source program is test.java. This commandgenerates test.class)Executing: Here, test is the executable file name, and the execution is as follows.For C or C++ program:. /testFor Java program:java testProgram Description:Write a small Linux program that will calculate the average of the following five grades:77, 85, 80, 94, and 97.The program does nothave to accept these grades, they may behard coded into the program.You must compute the average as a separate function such as average(sum, numGrades).Your program should print out the average, and then terminate.Program requirements:Enough documentation (either embedded in the code with comments, or external) toexplain how you parsed the program and to follow what you expect to happen.Source code for your program (file name linuxfc.c or linuxfc.cpp or linuxfc.java )Submit your source code to Week 4 dropbox.