Solved

Counting Cows

Posted on 1997-08-12
7
208 Views
Last Modified: 2010-04-16
null
0
Comment
Question by:Satie
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

by:barakp
ID: 1215407
What does the program do and what is your problem?
0
 

Author Comment

by:Satie
ID: 1215408
Edited text of question
0
 

Author Comment

by:Satie
ID: 1215409
Adjusted points to 60
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Satie
ID: 1215410
Edited text of question
0
 
LVL 2

Expert Comment

by:kellyjj
ID: 1215411
Are you looking for someone to do your homework??  Better increase your points.
0
 
LVL 1

Accepted Solution

by:
barakp earned 60 total points
ID: 1215412
Use 3 counters to count the number of cows of each color, use another variable to sum up a color total weight, then for the average divide that into the counter.
Validating isn't difficult if you get the ID into a string and use a function to check it.
Use a while loop which will stop once you enter a negative weight.
0
 
LVL 1

Expert Comment

by:barakp
ID: 1215413
Grade the answer!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now