Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Counting Cows

Posted on 1997-08-12
7
Medium Priority
?
224 Views
Last Modified: 2010-04-16
null
0
Comment
Question by:Satie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 

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 240 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

By default Outlook 2016 displays only one time zone in the Calendar. The following article explains how to display two time zones in one calendar view.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

715 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