Question: Please use Java for part one. The overall coding is in Linux and we use Git Hub. Part 1: Write Source Code (2 pts) 1.

Please use Java for part one. The overall coding is in Linux and we use Git Hub.

Please use Java for part one. The overall coding is in Linux

Part 1: Write Source Code (2 pts) 1. You may choose Java or C or C++ to do the following: Write source code that prompts the user to enter text / a string from standard input, then outputs the same string back to standard out. Include your code in your lab write up. o I recommend naming the source code file repeat with the appropriate language extension (ie. repeat.java, repeat.c, repeat.cpp). o Code integrity does not matter - you may work together or use things found on the internet or textbooks. o Python only coders - you will be happiest in C. Go about halfway through this guide for starter code. You'll need to add another print statement before the scan statement to prompt the user to enter a string. Part 2: Compile Source Code (4 pts) 1. Find the location of the C compiler, gcc. Write the command to find out which version of gcc is running. (1 pt) Useful commands: whereis, which, man 2. Find the location of the Java compiler, javac. Write the command to find out which version of javac is running. (1 pt) Useful commands: whereis, which, man 3. Compile your code using the corresponding compiler. Write the command you used to compile your source code. (1 pt) 4. Run your program. Write the command you used to run your compiled program. (1 pt) Resources Compile a Java Program Compile a C/C++ Program Part 3: Make that Makefile (3 pts) 1. Create a file called Makefile. 2. Write contents in Makefile so that in the shell the following commands perform the following actions: o make will compile the program and create an executable version if the source code file exists (1 pt) make run will execute the program if the compiled program exists (1 pt) make clean will delete the compiled program (1 pt) O O

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!