🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: de.comp.lang.c++
2 messages
2 total messages Started by MackBoring Thu, 21 Mar 1996 11:57
SOLUtion needed ASAP
#1865
Author: MackBoring
Date: Thu, 21 Mar 1996 11:57
32 lines
1682 bytes
Need simple C solutions to  (2) Problems, I have asked for help before and
would appreciate any help possible.

PROBLEM #1...............Use of Arrays to solve
Write a program which will ask for the  encrypted text(See below) to be
entered from the keyboard,then decode the text, and print out the
corrected message. Uppercase only is fINE
APLPHABET: A B C D E F G H I J K L M  N O P Q R T S U V W X Y Z 
CODE:            K D X L G T O E S A N H R F U M P V W I B Z Q Y J C 
Letter substitution is as follows every time you see a K in the code a A
would be subsituted for it

The encrypted text is: 
                             ST JUB EKZG QVSIIGF IEG MVUOVKR MVUMGVHJ IESW
WGFIGFXG QSHH DG BFLGVWIKFLKDHG


PROBLEM# 2....Use of functions to solve

Compute the areas of the following shapes:
Square: Side X Side
Rectangle: Length x Width
Triangle: (1/2) x Base x Height
Circle: 3.14159 x radius x radius
Place each computation in a seperate function, each function should
announce the shape being computed
request the proper dimensions, compute and print the area and return to
main. 
Anumerical  menu to select the available function needs to be created with
a 0 being the termination character 

Thanks for any help...........................Fred
Re: SOLUtion needed ASAP
#1881
Author: Volkmar Kostka
Date: Fri, 22 Mar 1996 15:26
55 lines
2411 bytes
In article <4irg6u$pjg@newsbf02.news.aol.com>,
   mackboring@aol.com (MackBoring) wrote:
>Need simple C solutions to  (2) Problems, I have asked for help before and
>would appreciate any help possible.
>
>PROBLEM #1...............Use of Arrays to solve
>Write a program which will ask for the  encrypted text(See below) to be
>entered from the keyboard,then decode the text, and print out the
>corrected message. Uppercase only is fINE
>APLPHABET: A B C D E F G H I J K L M  N O P Q R T S U V W X Y Z 
>CODE:            K D X L G T O E S A N H R F U M P V W I B Z Q Y J C 
>Letter substitution is as follows every time you see a K in the code a A
>would be subsituted for it
>
>The encrypted text is: 
>                             ST JUB EKZG QVSIIGF IEG MVUOVKR MVUMGVHJ IESW
>WGFIGFXG QSHH DG BFLGVWIKFLKDHG
>
>
>PROBLEM# 2....Use of functions to solve
>
>Compute the areas of the following shapes:
>Square: Side X Side
>Rectangle: Length x Width
>Triangle: (1/2) x Base x Height
>Circle: 3.14159 x radius x radius
>Place each computation in a seperate function, each function should
>announce the shape being computed
>request the proper dimensions, compute and print the area and return to
>main. 
>Anumerical  menu to select the available function needs to be created with
>a 0 being the termination character 
>
>Thanks for any help...........................Fred

This was posted to a german news group, so speak german if you can.
I do.

AARRGGHH.

Ich hab' nichts gegen Anfragen bei Programmierproblemen, aber so was geht mit 
etwas gegen den Strich. Ich mach' doch nicht die Hausaufgaben von irgendjemand 
anderem.

Irgendjemand anderer Meinung ??

Bye ...

Volkmar

 | (small signature)   | Volkmar Kostka (TPS GmbH - Germany) |
 | CHAOS PROGRAMMING   | Volkmar.Kostka@tps.de               |
 | HUMANOID            | Phone: +49 9103 506 144             |
 | (original shrinked) | FAX:   +49 9103 506 281             |
 LARGE SIGNATURE AVAILABLE ON REQUEST
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads