Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please do questions 4,5 Show all work yes please both questions 4 and 5 in psuedo code and flow charts. For problem 5, assume that

please do questions 4,5 Show all work image text in transcribed
yes please both questions 4 and 5 in psuedo code and flow charts. For problem 5, assume that the programming language understands what mean, median, mode, etc. are, you do not have to write the actual steps to do the calculation for each statistic.
Problems for Psuedo Code and Flowchart 1. Make a peanut butter sandwich. 2. Calculate the value of n! Do not use the factorial fn, use the actual recursive definition**. 3. Draw a deck of cards from a standard deck of 52 cards until the queen of hearts is drawn. How many cards did you draw? 4. Fibonacci Numbers. The Fibonacci Numbers are an interesting sequence of positive integers where each value is the sum of the previous two values. We begin with F1 = F2 = 1. This is known as the seed. Each successive value is then obtained from the formula F, = F/.+ F1-2, for = 3, 4, 5 .... Find and list the first 25 Fibonacci numbers. This is an example of a recursive function. 5. Given the heights of 7 engineering students, H1, H2, H3, H4, H5, H6, H7. Find the mean, median, mode, min, max, variance and standard deviation. **A recursive function uses previous values of itself to find the current value. So for n! where n-4, the formula would be n!4 = n!3 * 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

=+ 2. What is the opportunity cost of seeing a movie?

Answered: 1 week ago

Question

=+ what roles should government play in them ?

Answered: 1 week ago

Question

=+ Why do we have markets and, according to economists,

Answered: 1 week ago