Exercise 1 (total 25pts: 15pts for pseudocode and 10pts for flowchart):
Write an algorithm that takes a series of N numbers. It computes, for the even numbers of the
series, their average and their number and it does the same for the odd numbers. The computed
values are then output by the algorithm.
Give the pseudo code for the algorithm and represent it with a flowchart.
Exercise 2 (total 25pts):
Write the pseudocode of an algorithm that can compute the total daily sales revenue of a store as
well as the two articles that generated the most revenues. The algorithm takes as inputs at the end
of each day, the number of articles sold, and for each article, its code, the number of instances of
the article that were sold, as well as the article's sales price. Assume that the codes of articles are
integer numbers.
Exercise 3 (total 25pts):
Write an Algorithm to continuously ask the user to enter any word other than "hello" until the
user enters the number hello. When this happens, you should print a message "You weren't
supposed to enter this word!" and exit. If after 5 iterations and the user hasn't entered "hello",
output the following message: "You are patient".
Exercise 4 (total 25pts):
Write an Algorithm and draw the flowchart to calculate the total price of the user shopping list.
You should get the number of items from the user and the individual price for each item. (use a
while loop).