calculate the total amount of money paid in by (n)number of student using flochart
Calculate the median and mode for the following data set:
Data Set = 2, 9, 10, 4, 8, 4, 12
Calculate the mean for the following data set:
Data Set = 2, 9, 10, 4, 8, 4, 12
Using flowcharts, write an algorithm to read 100 numbers and then display the sum.
Design an algorithm and the corresponding flowchart for finding the sum of the numbers 2, 4, 6, 8, …, n
algorithm to read 100 numbers then display the largest.
Question 1 Given that the messages y1, y2, y3, y4, y5 with the corresponding probabilities 0.4, 0.2, 0.2, 0.1, and 0.1 a) Construct a binary code by using a Shannon Fano Algorithm to determine?
I. Code efficiency ii. Redundancy of the code iii. Code tree
Question 2 a) Consider a Huffman’s Algorithm that uses a variable-length encoding scheme to compress the original text: GOOD DAY to determine the following?
I. Code tree ii. Codeword iii. Average code length
Question 3 a) Write a short note on the following and state any two (2) practical examples under each? I. Impact printer ii. Non-impact printer b) What is the difference between Additive Color and Subtractive Color and two (2) examples under each?
Given the radius of the circle find its area. using pseodocode
Why Is Method main Declared static?
State whether each of the following is true or false. Explain why.
a. The default case is required in the switch selection statement.
b. The break statement is required in the last case of a switch selection statement.
c. The expression ( (x > y) && (a < b ) ) is true if either x > y is true or a < b is true.
d. An expression containing the || operator is true if either or both of its operands are true.
e. The comma (,) formatting flag in a format specifier (e.g., %,20.2f) indicates that a value should be output with a thousands separator.
f. To test for a range of values in a switch statement, use a hyphen () between the start and end values of the range in a case label.
g. Listing cases consecutively with no statements between them enables the cases to perform the same set of statements.