Change the name of the function that displays your name

Assignment Help C/C++ Programming
Reference no: EM131102252

Objective Become familiar with the C++ compiler/environment that you plan to use for the programming assignments in this class. I strongly recommend using the Unix system as we discussed in class.

Requirements

- Get the "Hello, world!" program working.

- Add a function (ShowProgramHeader () as described in lecture) to print your name and class information before the "Hello, world!" message.

Note: This will be required on all future assignments.

The following changes should generate compiler errors/warnings. If it does, record the message; if it does not, record that. Turn this record in with your assignment.

- Remove the semi-colon from the output statement in main().

- Comment out the using namespace std; statement. Use either a block comment or an in-line comment. Is there a difference?

- Comment out the #include <iostream> (#include <iostream h> on older compilers) statement. Use either a block comment or an in-line comment. Is there a difference?

- Change the double quotes that enclose the Hello, world! message to single quotes.

- Change the << (put to operator) to < on one of your output lines.

- Remove the starting brace from main 0 .

- Remove the closing brace from main 0 .

- Change cout to Cout or COUT.

- Change main to Main or MAIN.

- Change the name of the function that displays your name, date, etc, from ShowProgramHeader() to ShowHeader().

Deliverables
- Program fully documented.
- Output-neatly formatted and documented.
- List of errors neatly formatted

AS you can see the assignment I want you to work on it.

Verified Expert

The solution program written in online UNIX system and executed in c++ compiler. There are two programs to display the name and class using user defined function ShowProgramHeader(). ShowHeader() function to print the system current date. The solution file prepared in word and answered all required questions with program, output screen shot and error details.

Reference no: EM131102252

Questions Cloud

Admissions and records of a large western university : The Office of Admissions and Records of a large western university released the accompanying information concerning the contemplated majors of its freshman class. (Round your answers to three decimal places.)
Who designs and installs accounting systems : Who designs and installs accounting systems?
Statistical methods for research workers : Answer every part of each of the four questions on this exam. Show all of your work.  You may earn partial credit for incorrect or incomplete answers if you show work that demonstrates appropriate statistical reasoning or the application of an app..
Calculate the first-run npv and irr : calculate the first-run NPV and IRR. Assume that the cash flows for each year are independent of cash flows for other years.. Frequency distributions for NPV and IRR are plotted by the computer, and the distributions' means and standard deviations ar..
Change the name of the function that displays your name : Change the double quotes that enclose the Hello, world! message to single quotes - Change the name of the function that displays your name
What are the three basic functions of every accounting : What are the- three basic functions of every accounting -system?
What do we mean when we say that an accounting system : What do we mean when we say that an accounting system needs to be "cost-effective"?
Find the expected transmitted energy per binary digit : That is, the transmitter sends a/gm/ instead of a. Find the expected transmitted energy per binary digit.
What is an accounting system : What is an accounting system and what is the primary objective of such t system?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Determining the corresponding node labels

Use binary reflected Gray code (RGC) to determine how a 16-node linear array can be mapped to a 4-D hypercube. You must derive the 4-bit Gray codes and the corresponding node labels of a 4-D hypercube. Draw the mapping of the 16-node linear array ..

  One of the disadvantage of pass by reference

One of the disadvantage of pass by reference is that the called function may inadvertently corrupt the called data. How ca this be avoided?

  Program that loads the keywords and definitions

1) Develop the part of the program that loads the keywords and definitions from the external file

  Design and implement a dynamic queue

Design and implement a dynamic queue - Allocate and de-allocate memory at runtime and Manipulate links in a dynamic queue

  Design a grade average program

Grade Average Program - Design a grade average program that will produce the numerical grade average of test scores input by a user

  Define a base class to use for the entire program

Your company, Datamax, Inc., is in the process of automating its payroll systems. Your manager has asked you to create a program that calculates overtime pay for all employees.

  Uses the sieve of eratosthenes algorithm

Write a complete program that uses the Sieve of Eratosthenes algorithm to list all prime numbers from 1 to 1,000 .

  Problem of computing a set of equivalent elements

The problem of computing a set of equivalent elements arises in many applications. Recall that an equivalence relation defined on a set of elements is a relation that is reflexive, symmetric and transitive.

  Write the code for the for-loop initializations

Write the code for the for-loop initializations and the for-loop body. Carefully study and compare the pseudocode and C++ for loops in the commentary.

  Discussing the competitive advantages

Identify an organization with its management information systems. Prepare a report in discussing the competitive advantages and limitations of the systems. Competitive advantages include the benefits for business, organization, employees, and orga..

  calculates the average rainfall

Write a program that calculates the average rainfall for three months. The program should ask the user to enter the name of each month, such as June or July, and the amount of rain (in millimeters) that fell each month.

  What are the sizes in memory of data types

What are the sizes in memory of other data types in C++? I mean, I know that a double is 8 bytes and an int is 4 bytes. What si the size of a Char and a String?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd