Help with an assignment

Hello I am new to c++ and have an assignment as follows:

Write a program that contains 3 functions as described below. We will discuss how to turn in on our next meeting.

1)Write a function named showName that will output your address in an "address" format. For instance, it should appear like:


Jim Martin
2991 Main Street, apt #234
Washington, D.C. 20123



2) Write a function that will return the sum of 3 numbers passed as 2 int and 1 double argument. Name the function add3().


3) Write a function that will output your name in a starred box, like this:

*********************
* JOEL E BELCHER *
*********************

The stars MUST line up in a perfect box and your name can be hard-coded. There may be some format specifiers you'd like to use, but you don't really need them here.
Forget the function for a moment and just try cout'ing your name for a start.
Do the same for the next two.
If you can do that then you are halfway there.
Topic archived. No new replies allowed.