Solved

Counting Cows

Posted on 1997-08-12
7
211 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
An article on effective troubleshooting
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

786 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