🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.lang.c++
Article #1865

SOLUtion needed ASAP

#1865
From: 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
Technical Details
Message-ID: <4irg6u$pjg@newsbf02.news.aol.com>
Path: arc1-ca.pugleaf.net!newsbf02.news.aol.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!newsbf02.news.aol.com!not-for-mail
From: mackboring@aol.com (MackBoring)
Newsgroups: de.comp.lang.c++
Subject: SOLUtion needed ASAP
Date: 21 Mar 1996 06:57:18 -0500
Organization: America Online, Inc. (1-800-827-6364)
Sender: root@newsbf02.news.aol.com
Message-ID: <4irg6u$pjg@newsbf02.news.aol.com>
Reply-To: mackboring@aol.com (MackBoring)
NNTP-Posting-Host: newsbf02.mail.aol.com