Article View: de.comp.lang.c++
Article #1881Re: SOLUtion needed ASAP
From: Volkmar Kostka
Date: Fri, 22 Mar 1996 15:26
Date: Fri, 22 Mar 1996 15:26
55 lines
2411 bytes
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
Technical Details
Message-ID:
<4iugqg$cok_001@news.tps.de>Path:
arc1-ca.pugleaf.net!news.tps.de!ATOPReferences:
<4irg6u$pjg@newsbf02.news.aol.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.tps.de!ATOP From: Volkmar.Kostka@tps.de (Volkmar Kostka) Newsgroups: de.comp.lang.c++ Subject: Re: SOLUtion needed ASAP Date: Fri, 22 Mar 96 15:26:08 GMT Organization: TPS Teleprocessing Systeme GmbH Message-ID: <4iugqg$cok_001@news.tps.de> References: <4irg6u$pjg@newsbf02.news.aol.com> NNTP-Posting-Host: atop.tps.de X-Newsreader: News Xpress Version 1.0 Beta #4