Assignment: #MakeHelloWorld Due: 09/02/02018 Points: 3

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 a shell command-line. Note: $ is the prompt.

   $ edit MakeHelloWorld.java
   $ javac MakeHelloWorld.java
   $ java MakeHelloWorld > hw.cpp
   $ g++ -o hw hw.cpp
   $ ./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 02018.08.26
    */
   #include <iostream>

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

The @generated YYYYY.MM.DD formatted date can be created using either a class Calendar object or a class Date object.