473,385 Members | 1,893 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.

Number of occurences

Reading standard input and printing the number of occurences of each letter in graphic format as follows:

a: .....
b: ..
.
.
.
z: ...

where no. of dots= no.of occurences
Apr 10 '07 #1
7 1679
RedSon
5,000 Expert 4TB
Sounds like an interesting problem. Thanks for sharing, but this forum is for asking questions. Did you want to ask a question, or were you content just to tell us about your assignment and leave it at that?
Apr 10 '07 #2
I am sorry that I have forgotten to mention that.. I have tried to solve this problem and not very successful.. So I just wanna know any ways to solve this..
Apr 10 '07 #3
RedSon
5,000 Expert 4TB
There are lots of ways to solve this. What work have you done to solve this? Have you read the chapters of your book that have information about this? Have you talked to your instructor about your questions? Have you searched google and thescripts for similar problems that have already been solved?
Apr 10 '07 #4
Yes ofcourse.. I am able to solve half of the problem by geting the number of occurences with the use of pointers. But I just wanna know how to getit in graphic format.. N is that necessary that I have to ask my instructor before expressing any doubt in these forums?
Apr 10 '07 #5
RedSon
5,000 Expert 4TB
The people on thescripts expect that you exhaust all your normal resources first, which means google, books, instructors should be consulted first. But there is no requirement that you must have asked your instructor first, even if there was there would be no way for us to enforce this rule so it would be ridiculous to make it.

What I don't understand is, if your program can already calculate the number of occurrences then why are you not able to just put a print statement in a loop that prints a dash or dot for each occurrence?
Apr 10 '07 #6
I just wanna know the whole program
Apr 10 '07 #7
RedSon
5,000 Expert 4TB
The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR
Apr 10 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: sibingpeter | last post by:
Hi there, Im trying to find the right way to code the loop to count the number of occurences of a given substring in a string. Im able to find the first occurence using the strstr function, but...
1
by: sunilkeswani | last post by:
Hi I am still new to access. I want to know how i can build a query which can display results from 4 different columns/fields Like. Field1 Field2 Field3 Field4 1 2 1 ...
3
by: M.N.A.Smadi | last post by:
hi; say i have a text file with a string ( say '(XYZ)') and I want to find the number of line where this string has occured. What is the best way to do that? what about if that string was say a...
3
by: nightrosee | last post by:
hello every body how are you? I hope you are all having a nice day.. I have to write two methods, the first one counts the number of occurrences of a character ch in a string ( ...
4
by: Dameon | last post by:
Hi All, I have a process where I'd like to search the contents of a file(in a dir) for all occurences (or the count of) of a given string. My goal is to focus more on performance, as some of the...
2
by: kasala | last post by:
I get an xml document as input from other department. The input xml document i recieve has a particular word "rnx" which should not be there and my system doesn't support it. And there is also...
5
by: Larry | last post by:
Dear all, I'm new to Python. I have a file (an image file actually) that I need to read pixel by pixel. It's an 8-bit integer type. I need to get the statistics like mean, standard deviation,...
1
ajhayes
by: ajhayes | last post by:
I posted a few weeks ago about trying to set up a way to order by unit number (http://bytes.com/topic/access/answers/864507-need-help-setting-up-table-structure-ordering-unit) I'm trying to use a...
3
by: SLauren | last post by:
Hi, I am trying to find the records based on a search string which can be anything and can match any of the varchar fields in the table. Right now i am getting those records by using the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.