Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework

# I need a program, c++, ntroduction: An FIR (Finite Impulse

Customer Question
i need a program JA: What...
i need a program
JA: What programs and versions are you using?
Customer: c++
JA: What is your ideal outcome? How can we solve this for you?
Customer: ntroduction:
An FIR (Finite Impulse Response) filter can be represented by
min ( −1, )
[ ] = ∑ [ − ]h[ ] =0
(1)
where is the number of coefficients, h[ ] is the impulse response of the filter, [ − ] is the input of the filter delayed clock cycles, [ ] is the output of the filter, and [ ] = 0 for < 0.
A discrete filter accepts a sequence of data (input), one at a time, and produces a new sequence of data (output), one at a time. In the above equation, is the time index, = 0, 1, 2, .... The filter behavior is explained below.
At = 0, the filter gets only one input which is [0], so the filter uses [0] to generate the output [0] at time moment of = 0. At = 1, the filter has two inputs available which are [0], [1], so it will use these two values to generate the output [1]. When the number of input data grows higher than 35, the filter only uses the latest 35 inputs to compute the output. In other words, equation (1) can be split into the following two equations:
and
[ ] = ∑ [ − ]h[ ] , < (2) =0
−1
[ ] = ∑ [ − ]h[ ], ≥ (3) =0
where = 35 which is the order number for the filter we use below.
From equation (2), we can calculate [ ] for < 35 as follows: [0] = h[0]
[1] = [1]h[0] + [0]h[1]
[2] = [2]h[0] + [1]h[1] + [0]h[2] ...
ECE 206/L
1
From equation (3), we can calculate [ ] for ≥ 35 as follows:
[35] = [35]h[0] + [34]h[1] + ⋯ [3]h[32] + [2]h[33] + [1]h[34] [36] = [36]h[0] + [35]h[1] + ⋯ [4]h[32] + [3]h[33] + [2]h[34] [37] = [37]h[0] + [36]h[1] + ⋯ [5]h[32] + [4]h[33] + [3]h[34]

A given optimal equiripple FIR (Finite Impulse Response) filter has the following specification: Sample rate: 10 kHz (0.0001 sec / sample);
Passband: 0 – 2.5 kHz (lowpass), 0.5 dB maximum ripple; Stopband: 3.0 – 5 kHz, 50dB minimum attenuation.
Using the Parks-Mcclellan program, we obtain the following impulse response values (scaled up by 215; ie. to get actual value, divide by 215), with = 35.
h(0) = h(34) = 361.922 h(1) = h(33) = 589.000 h(2) = h(32) = 52.556 h(3) = h(31) = -538.095 h(4) = h(30) = -58.657 h(5) = h(29) = 499.472 h(6) = h(28) = -251.531 h(7) = h(27) = -785.168 h(8) = h(26) = 381.999
h(9) = h(25) = 812.822 h(10) = h(24) = -934.419 h(11) = h(23) = -1082.725 h(12) = h(22) = 1547.666 h(13) = h(21) = 1083.109 h(14) = h(20) = -3229.928 h(15) = h(19) = -1275.738 h(16) = h(18) = 10268.660 h(17) = h(17) = 17571.900
Courtesy: Dale Clover & John Deller, Digital Signal Processing and Microcontroller, Motorola University, Prentice-Hall, 1999.
Tasks:
Write a C++ program to do steps 1 to 4 and use Excel to do step 5:
1. Create three arrays [600], h[35], and [600].
2. Fill the array with the 600 sample values of ( ) = 100 sin(4000 ) for 0 ≤ < 0.06 with rate of Δ = 0.0001 per sample. Note that the frequency for the sinewave is 2 KHz.
3. Compute [ ] for 0 ≤ < 0.06.
4. Store the 600 sample values of [ ] in file filex and store the 600 sample values of [ ] in file filey.
5. Plot [ ] and [ ] versus on the same graph using Excel. Compare and comment on the
amplitude of the two sinewaves [ ] and [ ].
ECE 206/L
2
Program Outcomes and Discussions:
1. Repeat steps 1 to 5 for ( ) = 100 sin(4000 ), frequency 2 kHz.
2. Repeat steps 1 to 5 for ( ) = 100 sin(6000 ), frequency 3 kHz.
3. Repeat steps 1 to 5 for ( ) = 100 sin(8000 ), frequency 4 kHz.
4. Compare the amplitudes of the two sinewaves [ ] and [ ] for frequencies 2 kHz, 3 kHz, and 4 kHz. Categorize the filter either as low pass filter, high pass filter, or band-pass filter.
JA: Anything else you want the programmer to know before I connect you?
Customer: no
Submitted: 6 months ago.Category: Homework
Show More
Show Less
Answered in 1 hour by:
5/15/2017
Tutor: swmcdonnell, Tutor replied 6 months ago
Category: Homework
Satisfied Customers: 290
Experience: Steve is a part-time tutor and has taught adult math and computer science classes.
Verified

Hi there, my name is***** do you need this?

Ask Your Own Homework Question
Customer reply replied 6 months ago
by tonight
Customer reply replied 6 months ago
i dont really have a program for it
Customer reply replied 6 months ago
if you connect to my device, there is nothing to fix
Tutor: swmcdonnell, Tutor replied 6 months ago

I don't want to connect to your device.

Ask Your Own Homework Question
Tutor: swmcdonnell, Tutor replied 6 months ago

Sorry, I don't think I can finish all this by tonight. I'll opt out and you can see if someone else will help you.

Ask Your Own Homework Question
Ask Scott Your Own Question
Scott, MIT Graduate
Category: Homework
Satisfied Customers: 3,040
3,040 Satisfied Customers
Experience: MIT Graduate (Math, Programming, Science, and Music)

Scott 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:

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

He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

DianeDallas, TX

< Previous | Next >

## Meet the Experts:

LogicPro

Engineer

5,672 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Tutor

4,549 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

M.S.W. Social Work

2,635 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

Chartered Accountant

2,158 satisfied customers

Experience with chartered accountancy

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
Which if the following is not included unpaid-in capital?
which if the following is not included unpaid-in capital? common stock pain-in capital-donations stock dividend distributable appropriation per loan agreement … read more
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,158 satisfied customers
This question is just for Dr. Kakonge. This purpose is to
Hello. This question is just for Dr. Donna Kakonge.This purpose is to pay the payment to Dr. Donna Kakonge on 06/16/2017 again because of something wrong about payment on 06/16/2017.The question on 06… read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
A recent survey found that 73% of all adults over 50 wear
A recent survey found that 73% of all adults over 50 wear sunglasses for driving. In a random sample of 20 adults over 50, what is the mean and standard deviation of those that wear sunglasses?… read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
Is anyone familiar with Excel??? The link below will take
Is anyone familiar with Excel??? The link below will take you to my question. It is due 02/14/10 Sunday night , but the sooner the better. You will see "1: Five-Year Sales Projections" that is what I … read more
Stephen, MBA
Master's Degree
166 satisfied customers
160 Word min.: Consider the internal control process
160 Word min.: Consider the internal control process required by the Sarbanes-Oxley Act. Do you think the expenses of implementing better internal controls are offset by the benefits of having the con… read more
Jane T(LLC)
Master's Degree
18 satisfied customers
I would ask this in homework but I think this is out of
Hi,I would ask this in homework but I think this is out of their area of expertise. How much to answer these 40 electrician trade school questions from Penn foster. This is their NEC graded project wh… read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
I have questions on teh fundamental accounting principles
I have questions on teh fundamental accounting principles book nineteenth edition. chapter 11. if you do hit me up… read more
Brittany
Bachelor\u0027s Degree
102 satisfied customers
I see you have already done this project but i dont see the
hello i see you have already done this project but i dont see the essay part of it or the brainstorm page it needed done,i am in need of these asap,if you can contact me that would be great,thnx “Evil… read more
O. Adames
Bachelor\u0027s Degree
77 satisfied customers
I need help on how to figure out this problem, I am having
Hello, I need help on how to figure out this problem … read more
GLENN
Master of Mathematics
328 satisfied customers
How many words per minute does the average person think? How
Good afternoon, how many words per minute does the average person think? … read more
GLENN
Master of Mathematics
328 satisfied customers
Section 1 – Objectives: Provide a brief summary of the
Section 1 – Objectives: Provide a brief summary of the project. • Section 2 – Task 1: Basic Web Tracking Mechanism: Summarize your efforts to investigate web tracking, including the screenshots you to… read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
I need help implementing expectation maximization algorithm
I need help implementing expectation maximization algorithm in python … read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
I have 3 more if you want them, i have to pick a heroine,
i have 3 more if you want them, i have to pick a heroine, and do these assignments, let me know, and let me know what its worth, when this one is done, i will send you the other two, and pay seperatel… read more
O. Adames
Bachelor\u0027s Degree
77 satisfied customers
I need help with advanced macroeconomics. I'm having trouble
I'm having trouble with the IS-MP-PC model, showing what would happen if the FFR would be increased, and also if there were to be a tax reform. … read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
With a minimum word count of 130: Do you believe business
With a minimum word count of 130: Do you believe business enterprise should be regulated by the federal government or that the marketplace should determine price? Explain your response.… read more
Experienced Teacher
Bachelor\u0027s Degree
394 satisfied customers
Is there any help for Linux beginners testout chapter exams.
is there any help for Linux beginners testout chapter exams … read more
Dr. Donna Kakonge
Doctor of Education
185 satisfied customers
Prepare 10 column work sheet for fiscal year 2005 starting
prepare 10 column work sheet for fiscal year 2005 starting with unadjust trial balance including adjustments on additional facts?… read more
Manal Elkhoshkhany
Tutor
Foundation classes for MBA
4,549 satisfied customers
Need an SQL query written that will create a row for every
Need an SQL query written that will create a row for every possible date. I need it to take all invoices, payments and exchange rates and create a row for each record so that it can be filtered by exa… read more
The-PC-Guy
Bachelor\u0027s Degree
628 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