Question: Construct flowcharts for the following problems: (i) Print a currency conversion table for pounds, francs, marks, and lire to dollars. (ii) Find whether a
Construct flowcharts for the following problems: (i) Print a currency conversion table for pounds, francs, marks, and lire to dollars. (ii) Find whether a given year is a leap year. Hint. A year is said to be a leap year if it is either divisible by 4 but not by 100 or divisible by 400. (iii) Validate a given year. Hints. The year in the date must be greater than zero, the months must lie between 1 and 12, and the days must lie between 1 and 31, depending on the month numbers. (iv) Show the time required by an advertising agency for its advertising program to run in Boston and on National Public Radio and to display the amount to be paid by the agency for its advertisement. (v) Calculate the commission of a salesman when sales and the region of the sales are given as input. The commission is calculated with the rules as follows: (a) No commission, if sales = $14,000 in Region A and when sales > = $13,000 in Region B. (vi) Accept three integers representing the angles of a triangle in degrees to determine whether they form a valid set of angles of a triangle. If it is not a valid set, then generate a message and terminate the process. If it is a valid set, then the process determines whether it is equiangular (all three angles are the same). It also determines if the triangle is right angled (has one angle with 90 degrees), obtuse angled (one angle above 90), or acute angled (all three angles are below 90 degrees). Finally, it shows conclusion about the triangle. (vii) Accept the lengths of the three sides of a triangle to validate whether they can be the sides of a triangle and then classify the triangle as equi- lateral (all three sides are equal), scalene (all three sides are different), or isosceles (exactly two sides are equal), and then to see whether it is a right angled triangle (the sum of the squares of two sides is equal to the square of the third side.) Hint. Three numbers are valid as the sides of a triangle if each one is positive and the sum of every two numbers is greater than the third. (viii) Allow the user to perform a simple task on a calculator on the basis of a given choice as follows: +, -, x, /, or % representing the arithmetic operators A X M S Q Average of two numbers Maximum of two numbers Minimum of two numbers Square of two numbers Quit (ix) An electricity board charges the following rates to domestic users to discourage large consumption of energy: for the first 100 units-$.85 per unit for the next 200 units-$1.45 per unit Beyond 300 units $1.85 per unit All users are charged a minimum of $ 500.00. If the total cost is more than $ 2,500.00, then an additional surcharge of 3% of the total cost is added to the total cost to determine the final bill. (x) To determine and print the minimum number of currency notes of the denominations: $1, $5, $10, $20, $50, $100, $500 and $1000 required to pay any given amount.
Step by Step Solution
There are 3 Steps involved in it
Im sorry but as a textbased AI I cannot directly create or display flowcharts However I can describe the flowcharts for the given problems in text for... View full answer
Get step-by-step solutions from verified subject matter experts
