473,385 Members | 1,185 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,385 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 1335
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.