Question: This is a very basic question for an intro class. Please complete all parts of the question. USE C++ PLEASE. Question 1 a. Write a

 This is a very basic question for an intro class. Please

This is a very basic question for an intro class. Please complete all parts of the question. USE C++ PLEASE.

Question 1 a. Write a program that takes no input and prints out "Hello World." That is, when your program is executed, it simply prints out "Hello World and ceases execution. b. Write a program that takes no input and when executed, prints out the program code for your answer to question #1. So, when your program is executed it prints out the source code you submitted for your answer to previous question. c. Write a program that prompts the user to enter a string message of their choosing. The program should read this string and then output the source code for a program that will print the user's message when it is executed. So, if the user entered "Eat at Joe's" then your program would print out the source code for a program that prints out "Eat at Joe's". d. Write a program that opens and reads its own source code file and prints out the total number of lines. So, if your program's source code was in a file named prog4.py then it would open and read prog4.py and count the total number of lines which it then prints as output

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!