Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ch3ex7 Students count a value that doesn't exist in the vector #62

Open
richierocks opened this issue Jul 2, 2018 · 2 comments
Open

Comments

@richierocks
Copy link
Contributor

screenshot 2018-07-01 21 41 00

Students are asked to find how often 14.5 appears in the vector areas, but it doesn't appear at all, which is weird. Should this be 9.5 (which does appear instead)?

@filipsch Am I missing something about this exercise? Or should I just go ahead and change it to 9.5 throughout?

@filipsch
Copy link
Contributor

filipsch commented Jul 2, 2018

@richierocks This is a mistake. It should print out how often a value that is actually in the array exists, yes.

@hirensays
Copy link

In your code 14.5 is not stored in array so it should gives count = 0
Here I am attaching one example...
count_problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants