help

i was wondering a couple of questions and i hope u can email me asap at danindians@juno.com

1. does neone have ne cool pascal games?

2.i have no idea how to do this assignment

can ne one help?

Directions: Each of these requires you to write a simple driver and at

least one function. The problems below describe the actual function

and NOT the required driver. The required driver is up to the

designer...you.


NOTE: Problems 1 & 2 require a character array which can be declared

as: char StringArray[80];


1.) Write a function called StringWrapper that accepts a pointer to a

character array. The purpose of this function is to "wrap" the string

around itself slowly (use delay() in conio.h) in the same position on

the screen for one full cycle of the string. The function prototype

should be:


void StringWrapper(char *String);

/* PRE: String points to a predefined variable character array.

POST: None.

CALLS: Up to designer........... */


Sample Output: String = This is a test.

At position (1,1) : This is a test. (delay)

At position (1,1) : .This is a test (delay)

At position (1,1) : t.This is a tes (delay)

At position (1,1) : st.This is a te (delay)

At position (1,1) : est.This is a t (delay) and so forth


2.) Write a function called CaseJumbler accepts a pointer to a

character array and returns the stringin an alternating

uppercase/lowercase format. The function prototype should be:


void CaseJumbler (char *String);

/* PRE : String points to a predefined variable character array.

POST : Returns String with alternating cases for each letter in the

string.

CALLS : Up to designer.......... */


Sample Output: String = This is another string test.

ThIs Is AnOtHeR sTrInG tEsT.

..OR..

tHiS iS aNoThEr StRiNg TeSt.


3.) Write a function called DecimalToBinary that accepts an unsigned

integer value and prints to the screen the equivalent value in binary

format after converting the value and storing it in a character array.

The function prototype should be:


void DecimalToBinary (unsigned int Value);

/* PRE : Value contains a positive integer.

POST : Prints to the screen the binary equivalence of Value.

CALLS : Up to designer........ */


Sample Output: Value = 15660

Binary Form: 0011 1101 0010 1100

Value = 287

Binary Form: 0000 0001 0001 1111





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories