Google Answers Logo
View Question
 
Q: C++ questions ( No Answer,   3 Comments )
Question  
Subject: C++ questions
Category: Computers > Programming
Asked by: taka-ga
List Price: $25.00
Posted: 13 Jan 2003 09:41 PST
Expires: 12 Feb 2003 09:41 PST
Question ID: 142070
C++ questions: to give CPP program code printouts  
Before 01/14/2003 
 
1, Allow user to enter 5 integer, to output the max & min integer

2, User enter any english word, and count all the character with
repretative number and calculate out the average of the word.

3, Enter 2 numbers, I&J, and draw out a rectangle consisted of I
line(vertical), J line( horizontal), and fill up the characters with
representitive number from the zero line (0,0), for example:

User enter the number of 3 & 7, and the rectangle will be like this:
0000000 
1111111 
2222222 




4, User enter 3 random numbers, and the program need to find out if
these 3 numbers can make a triangle? and if it is YES, try to find out
what kind of triangle it is( right-angle,or obscure and etc.) must be
solved by a SWITCH STATMENT,( Hint: use bool variables)


5,User enter a integer, "n", and "n*n" stands for the number of the
small square of the chess board, and we let the user to enterthe
position of the black & white pieces randomlyon the board, at the same
time the chess board is being drawn up(B: black pieces; W: white
pieces), if the input of the user enter is worng, print out the error
messege.

Request for Question Clarification by haversian-ga on 14 Jan 2003 02:05 PST
It is now 1/14/2003.  Did you mean to say "on or before 01/14/2003"? 
If so, could you:

clarify part 2 | What representative number?  Average value per
letter?

clarify part 4 | 3 numbers are lengths of the three sides of the
triangle?

clarify part 5 | I just don't understand at all what you're driving
at.


If this is, as it appears, a homework question, could you link to
where the specifications are, or type them out verbatim?  That way,
any ambiguities can be assumed to be intentional.

Clarification of Question by taka-ga on 14 Jan 2003 09:08 PST
Q2: Yes, Average value per letter.

Q4:Yes, 3 numbers present the length of 3 sides of the triangle.

Q5:Sorry, I havent written in Enlgish for long time so my English is
sucked, anyway the questions is about:

Making up a rectangle(a black & white chess board) of "n*n",( "n" is a
number/integer which allows the user
to enter randomly), afterwards, the user starts to enter the position
of black and white pieces on the chess board; simultaneously, the
chess board is being drawn up, if the user enters a wrong value or
worng data into the program, please print out the ERROR MESSEGE.( if
you still cant understand my question, thats alrite, just leave it
alone)

Clarification of Question by taka-ga on 16 Jan 2003 06:50 PST
Hey guys...i really need the answer by today......so please.......help
me as quick as possible......
Answer  
There is no answer at this time.

Comments  
Subject: Re: C++ questions
From: xrayx-ga on 17 Jan 2003 06:47 PST
 
hello, i just want to understand two things:
1- do u want that i'll do this for example (q2):
user entered "BABBBAC", so the out will be: (4+2+1)/7=1    ?
2- do u want that the chess board will be drawn in graphic mode?

answer me as soon as u can and iwll help you...
seriousley
XrayX
Subject: its me again...
From: xrayx-ga on 18 Jan 2003 01:06 PST
 
ok, i finished the first 3 programs and i only have to do the next 2.
i just want to know in question number 5 how do u want me to draw this
chess board? which charecters to use as the square or how to draw them
(graphic mode)?

does it ok to write in question no.4: "Triangle that has angle above
90 deg."
                                      "Triangle that has sharp angels"
                                      "Triangel that has an angle of
90 deg."

just say to me the names or change it yourself after i'll submit the
program.
answer me faster so i can finish the last two exercizes... (3 already
comleted)
Subject: Re: C++ questions
From: mathtalk-ga on 23 Jan 2003 10:40 PST
 
Hi, taka-ga:

The fourth question asks if three "side" lengths a,b,c can form a
triangle, and if so, whether the triangle so formed is acute, right,
or oblique (based on the largest angle in the triangle).

To solve such a problem, begin by ordering the three positive lengths
so that:

0 < a <= b <= c

These lengths can form a triangle if and only if then:

c < a + b

which is the idea behind what is called the "triangle inequality" in
analysis.

If the above condition holds, then compare c^2 and (a^2 + b^2) to
determine which kind of triangle would be formed:

c^2 < a^2 + b^2 implies an acute triangle

c^2 = a^2 + b^2 implies a right triangle

c^2 > a^2 + b^2 implies an oblique triangle

Note that any two triangles which both have sides of length a,b,c must
be congruent by SSS comparison.

regards, mathtalk

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy