473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

cs101

We have a project and that project is to make an algorithm with this
problem:

Write an algorithm that uses aloop,read in 10 pairs of numbers where
each pair represents the score of a football game with CSU listed
first,secondly,each pair of numbers determine whether CSU won or
lost.after reading in this 10 pairs of values print out the
'won/lost/tie'record of CSU.in additiion if this record is perfect
10-0,then print out the message 'congratualations on your undefeated
season.

If there is someone who knows about thi problem I hope you could help
me.I hope you could give me the answer befor october 5,2004 because i
need this on October 6.thank you.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #1
4 1344
How about you try solving this on your own? That's why you're taking CS101 -
to learn how to figure these things out yourself. Think of it as a 'word
problem'. Do you remember those from middle school? Do you remember how you
handled those problems? Try it on this one.

Tom Dacon
Dacon Software Consulting

"decie mae caburog" <be***********@yahoo.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
We have a project and that project is to make an algorithm with this
problem:

Write an algorithm that uses aloop,read in 10 pairs of numbers where
each pair represents the score of a football game with CSU listed
first,secondly,each pair of numbers determine whether CSU won or
lost.after reading in this 10 pairs of values print out the
'won/lost/tie'record of CSU.in additiion if this record is perfect
10-0,then print out the message 'congratualations on your undefeated
season.

If there is someone who knows about thi problem I hope you could help
me.I hope you could give me the answer befor october 5,2004 because i
need this on October 6.thank you.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #2
decie mae caburog <be***********@yahoo.com> wrote:
We have a project and that project is to make an algorithm with this
problem:

Write an algorithm that uses aloop,read in 10 pairs of numbers where
each pair represents the score of a football game with CSU listed
first,secondly,each pair of numbers determine whether CSU won or
lost.after reading in this 10 pairs of values print out the
'won/lost/tie'record of CSU.in additiion if this record is perfect
10-0,then print out the message 'congratualations on your undefeated
season.

If there is someone who knows about thi problem I hope you could help
me.I hope you could give me the answer befor october 5,2004 because i
need this on October 6.thank you.


You haven't actually asked a question - you've just told us what your
assignment is. If you could ask a specific question on whatever part of
your assignment you're having trouble with, we'd be better able to
help.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Jul 21 '05 #3
I want you to do well in your class, because someday, I may be working with
you.

You may someday be the developer sitting next to me, and I may turn to you
and
ask you to take on a module, a module that will prepare the data that my
module needs.

And you want me to shortchange your learning process now?

Heaven forbid you should graduate after actually LEARNING something.

I can't dictate your honesty. I simply ask all other responders to refrain
from helping you cheat.

--- Nick

"decie mae caburog" <be***********@yahoo.com> wrote in message
news:em**************@TK2MSFTNGP12.phx.gbl...
We have a project and that project is to make an algorithm with this
problem:

Write an algorithm that uses aloop,read in 10 pairs of numbers where
each pair represents the score of a football game with CSU listed
first,secondly,each pair of numbers determine whether CSU won or
lost.after reading in this 10 pairs of values print out the
'won/lost/tie'record of CSU.in additiion if this record is perfect
10-0,then print out the message 'congratualations on your undefeated
season.

If there is someone who knows about thi problem I hope you could help
me.I hope you could give me the answer befor october 5,2004 because i
need this on October 6.thank you.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #4
On Thu, 30 Sep 2004 19:21:02 -0700, decie mae caburog wrote:
We have a project and that project is to make an algorithm with this
problem:

Write an algorithm that uses aloop,read in 10 pairs of numbers where
each pair represents the score of a football game with CSU listed
first,secondly,each pair of numbers determine whether CSU won or
lost.after reading in this 10 pairs of values print out the
'won/lost/tie'record of CSU.in additiion if this record is perfect
10-0,then print out the message 'congratualations on your undefeated
season.

If there is someone who knows about thi problem I hope you could help
me.I hope you could give me the answer befor october 5,2004 because i
need this on October 6.thank you.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Think about the problem for a second. You have 10 pairs of numbers, the
first number is the score for CSU, the second is the opponents score. Each
pair represents one game. With that information, you should be able to
determine who won each game and figure out how many wins, losses, and ties
there are.

We won't give you the code. If you will just think about what is being
asked, you should be able to figure it out. If you have a specific
question when writing your code, we might be able to help.
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Jul 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
4
by: Charles | last post by:
Hello, I have created a class file: Admin.cs with a namespace of cs101.Code.nsAdmin. From my ASP page: Login.aspx.cs how do I reference Admin and then execute one of its methods "public...
4
by: decie mae caburog | last post by:
We have a project and that project is to make an algorithm with this problem: Write an algorithm that uses aloop,read in 10 pairs of numbers where each pair represents the score of a football...
10
by: B Williams | last post by:
I have been working with this code for a better part of the day and I can't figure out where I am making a mistake. I can only imagine it is when I declare multiple paramaters on the constructor...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.