Assignment: #MakeHelloWorld Due: 09/15/2017 Points: 5

Specification

Write a Java application that when compiled and interpreted prints to the standard output stream the code for a C++ program that when compiled and executed prints to the standard output stream the phrase hello, world followed by a newline.

Example using the command-line.

   prompt:  edit MakeHelloWorld.java
   prompt:  javac MakeHelloWorld.java
   prompt:  java MakeHelloWorld > hw.cpp
   prompt:  g++ hw.cpp -o hw
   prompt:  ./hw
   hello, world

The generated hw.cpp file must contain a file comment block that contains the following.

   This C++ program prints to the standard output stream the phrase 
   _hello, world_ (underscores excluded) followed by a newline to the 
   standard output stream. 

   @creator YOUR_FULL_NAME_GOES_HERE
   @generated YYYYY.MM.DD_FORMATTED_DATE_GOES_HERE

The output of class MakeHelloWorld (when compiled and intrepreted) by student Edith Foogooman should look like the following.

   /*
    * This C++ program prints to the standard output stream the phrase 
    * _hello, world_ (underscores excluded) followed by a newline to the
    * standard output stream. 
    *
    * @creator Edith Foogooman
    * @generated 02016.08.22
    */
   #include <iostream>

   int main(int, char**) {
      std::cout << "hello, world\n";
   }