Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming

Write a procedure named Get_frequencies that constructs a

Customer Question
Write a procedure named Get_frequencies...
Write a procedure named Get_frequencies that constructs
a character frequency table. Input to the procedure should be a
pointer to a string, and a pointer to an array of 256 doublewords.
Each array position is indexed by its corresponding ASCII code. When
the procedure returns, each entry in the array contains a count of how
many times that character occurred in the string. Include the source code only.
Submitted: 8 years ago.Category: Programming
Show More
Show Less
Ask Your Own Programming Question
Answered in 1 day by:
12/13/2008
Programmer: Ansh P., Computer Software Specialist replied 8 years ago
Ansh P.
Ansh P., Computer Software Specialist
Category: Programming
Satisfied Customers: 8,148
Experience: Professional software developer working as a systems engineer in top multi-national company.
Verified

This is the program mentioned:

 

#include "stdio.h"
#include "conio.h"
#include "string.h"
void Get_frequencies(char *,double *);
void main(){
char *c;
double freq_table[256];
int i;
clrscr();
for(i=0;i<256;i++)
freq_table=0;
printf("\nEnter a string : ");
gets(c);
Get_frequencies(c,freq_table);
printf("\nThe Frequency Table\n");
for(i=0;i<256;i++){
printf("\n %c\t%d",(char)i,(int)freq_table);
if(i%10==0)//this is used only for the display purpose.
getch();
}
}
void Get_frequencies(char *s,double *count){
int i,j;
for(i=0;i<strlen(s);i++){
for(j=0;j<256;j++){
if(s==(char)j)
count[j]+=1;
}
}
}

Ask Your Own Programming Question
Ask Ansh P. Your Own Question
Ansh P.
Ansh P.
Ansh P., Computer Software Specialist
Category: Programming
Satisfied Customers: 8,148
8,148 Satisfied Customers
Experience: Professional software developer working as a systems engineer in top multi-national company.

Ansh P. is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,109 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

789 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
OKPR923211 Expert in VB code editing? I have a short VB code
OKPR923211 Expert in VB code editing? I have a short VB code that does indenting of source code. I need help in revising it.… read more
Bhavik Joshi
Bhavik Joshi
Computer Science and Engineering
585 satisfied customers
A program that considers a class that keeps track of the
a program that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes: •Number sold •Total sales •Total discounts •Cost per item •Bulk q… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I received this error message when creating a program for a
Hello. I received this error message when creating a program for a clock in netbeans. Can you help? … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I need STM32Cube_FW based example source C code to program
I need STM32Cube_FW based example source C code to program STM32F411 MCU as USB HID host to access (communicate with) customized HID device (not keyboard nor mouse)… read more
Kris R
Kris R
IT Manager
Computing
2,263 satisfied customers
I am programming for years mostly in vbScript having the
I am programming for years mostly in vbScript having the vbScript-Editor, but codes get very long and I seek one Editor, which can have classes on different pages and procedures be closed, that only t… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
I have an assignment I need done today and I don't have time
I have an assignment I need done today and I don't have time to work on it. Can you help please? … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I have a couple remaining Java codes/modifications, which
Hi George, I have a couple remaining Java codes/modifications, which are detailed in the attached word document. As well, all of the required codes are in the Zip file. Let me know if you are missing … read more
George Sibiya
George Sibiya
PhD
194 satisfied customers
Trying to write a java program comparing the salary and
Trying to write a java program comparing the salary and commission of twp sales employees...I have never programmed before … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
I have a legacy program written in VB 6.0 running under
I have a legacy program written in VB 6.0 running under Windows Xp Pro (offline). Last successful update was in 2015. When I try to modif the source code of my program, I can no longer create a new .e… read more
Michael Hannigan
Michael Hannigan
Bachelor\u0027s Program
239 satisfied customers
You wrote a code for me to help me calculate custom pricing
You wrote a code for me to help me calculate custom pricing for products for my business. The little calculator has helped us tremendously. I have adapted the code (I don't know the code itself but ha… read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
789 satisfied customers
Sorry for the delay - someone came in. I have developed our
Hi. Sorry for the delay - someone came in. I have developed our business software using dbase PLUS which does not run with Windows 10, so we have been trying to keep our XP machines running. We now ne… read more
Kris R
Kris R
IT Manager
Computing
2,263 satisfied customers
I have an html 5 video question. I want to add a video to my
Hello, I have an html 5 video question. I want to add a video to my site. I was able to play the video once, then tried to center the layout and managed to mess up my video function. If you're able to… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,109 satisfied customers
Assignment 3 Please start with this source code. Write a
Assignment 3 Please start with this source code.Write a program that opens the following text file and processes it contents. The program should display the following per store: The total sales for ea… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
To C expert: How to convert my C source code to standard C
To C expert: How to convert my C source code to standard C source code so that it includes only standard C header files? My C source coding includes "CB.h", which is not an ANSI C standard C header fi… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
ON the new site for my book, I want to include a link near
ON the new site for my book, I want to include a link near the top of every page which will go to a site where they can purchase the book. How do I add that link. … read more
SladeV
SladeV
Associate Degree
102 satisfied customers
I'm working in NetBeans 8.2 and re-assembling/referencing a
I'm working in NetBeans 8.2 and re-assembling/referencing a desktop app package sent to me in pieces, the working app and source files. I have references to 8 libraries which are in the original insta… read more
Lorenz Vauck
Lorenz Vauck
Computer Expert
Electrical Engineering
71 satisfied customers
Need to create c++ program that read tests files and
Need to create c++ program that read tests files and reformats the input to desired length with desired spaces… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,109 satisfied customers
Automate unit tests for the services package using JUnit
Automate unit tests for the services package using JUnit Test each service, AccountService and PurchaseService, in isolation. Inject any stubbed dependencies as necessary. Modify the existing code bas… read more
Bruce Wilner
Bruce Wilner
Master of Engineering
27 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x