char string and pointer

Completed Posted Jun 9, 2003 Paid on delivery
Completed Paid on delivery

Char String and Pointers 1. Determine the error in the following program: (Type it up and run it!!) #include void main() { cout << "Your name" << endl; cout << "Your Period" << endl; char message[]= {'H', 'e', 'l', 'l', 'o', '\0'}; for(int i = 0; i < 5; i++) { cout << *message << endl; message++; } // THE PROGRAM SHOULD DISPLAY EACH LETTER OF HELLO } (s.c. and code) 2. Write a C++ function that displays the day of the week corresponding to a user-entered input between 1 and 7. That is, in response to an input of 2, the program displays the name Monday. Use an array of pointers in the function. Must have error checking, for numbers between 1 and 7. (s.c. and code) 3. Create three uninitailized character strings in the main. The user will input a three-word sentence, one word for one string. Then, from the main, pass the three strings into a function that uses the concatenation function from string.h. Concatenate the second string and the third string into the first string. Make sure the first string can hold all three words and cout the first string from the function. (s.c. and code) 4. Create two uninitailized character strings in the main. The user will input ONLY two words. You will then pass them into a function that will use the comparison function from string.h. In this function, you will have a char pointer set to null. If the first word is greater than the second, set the char pointer equal to the sentence "First word is greater than the second." Vice versa for second greater than first. If the first and second words are equal, set the char pointer equal to the sentence "First word is equal to the second word." Cout the pointer after the conditions in the function. (s.c. and code)

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

must run using microsoft visual C++

C Programming Engineering MySQL PHP Software Architecture Software Testing

Project ID: #2943348

About the project

23 proposals Remote project Active Jun 10, 2003

Awarded to:

srinivasangara

See private message.

$5 USD in 14 days
(9 Reviews)
3.7

23 freelancers are bidding on average $12 for this job

slimbvw

See private message.

$17 USD in 14 days
(158 Reviews)
7.5
dragomirvw

See private message.

$4.25 USD in 14 days
(149 Reviews)
5.6
ExpertFromInd

See private message.

$12.75 USD in 14 days
(48 Reviews)
5.4
projetcoder

See private message.

$5.95 USD in 14 days
(39 Reviews)
5.0
leepwo

See private message.

$10.2 USD in 14 days
(41 Reviews)
4.7
herculesevw

See private message.

$14.45 USD in 14 days
(79 Reviews)
4.7
hivesolutionsvw

See private message.

$8.5 USD in 14 days
(21 Reviews)
4.6
vw821235vw

See private message.

$8.5 USD in 14 days
(94 Reviews)
4.3
bladvw

See private message.

$12.75 USD in 14 days
(24 Reviews)
4.6
exceptionalcoder

See private message.

$25.5 USD in 14 days
(9 Reviews)
4.1
hmichopoulos

See private message.

$12.75 USD in 14 days
(27 Reviews)
3.7
cossimin

See private message.

$12.75 USD in 14 days
(18 Reviews)
3.5
patrica

See private message.

$18.7 USD in 14 days
(19 Reviews)
3.2
vw472664vw

See private message.

$4.25 USD in 14 days
(37 Reviews)
3.0
lonapz

See private message.

$5.95 USD in 14 days
(10 Reviews)
2.8
techfoster

See private message.

$11.05 USD in 14 days
(13 Reviews)
2.4
tralph

See private message.

$17 USD in 14 days
(9 Reviews)
1.8
barabasandrei

See private message.

$8.5 USD in 14 days
(1 Review)
1.3
gotnone

See private message.

$8.5 USD in 14 days
(1 Review)
0.0
bradretzlaff

See private message.

$12.75 USD in 14 days
(1 Review)
0.0