Construct flowcharts for the following problems: (i) Print a currency conversion table for pounds, francs, marks,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
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 the full answer
Related Book For
Spreadsheet Modeling & Decision Analysis A Practical Introduction to Management Science
ISBN: 978-0324656633
5th edition
Authors: Cliff T. Ragsdale
Posted Date:
Students also viewed these programming questions
-
. Two cyclists, A and B, are cycling along the same straight horizontal track. The cyclists are modelled as particles and the motion of the cyclists is modelled as follows: At time = 0, cyclist A...
-
Write a Java application program that will allow the user to enter a date. The program will then check the date to verify whether or not it is a valid date. Begin by asking the user to enter a date...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Required A. Calculate Mr. Worthy's minimum employment income for the current year. B. Assume Mr. Worthy had only $4,000 in commission income in addition to his $65,000 salary. Calculate Mr. Worthy's...
-
Depreciation information for Buckingham Ltd. is given in BE9-4. Using the diminishing-balance method and assuming the depreciation rate is equal to one time the straight-line rate, calculate the...
-
If boys and girls are equally likely, groups of 400 births have a mean of 200 girls and a standard deviation of 10 girls. Is 185 girls in 400 births an unusually low number of girls?
-
\(\frac{3}{\sqrt{7}} \times 1=\frac{3}{\sqrt{7}}\) Identify the property of real numbers that is being illustrated.
-
The Bruhaha Brewery is planning to expand internationally. The company has identified six critical location factors and their relative weights. The scores for each of the three potential sites are...
-
pleaseput right answer and explaine. Thanks The Wagner Corporation has a \( \$ 22 \) milion bond obligation outstanding. which it is considering refunding. Though the bonds wereinitially issued at 12...
-
1. Using the spreadsheet model from Case 2.1 as a starting point, use Solver to find the optimal set of projects to approve. The solution should maximize the total NPV from the approved projects, and...
-
Amounts received as scholarships for books and tuition may be excluded from the recipient's taxable income.a . Trueb. False
-
What is the difference between generalized coordinates and Cartesian coordinates?
-
What is the expansion theorem? What is its importance?
-
What is a basis in \(n\)-dimensional space?
-
When do we get complex eigenvalues?
-
Define these terms: proportional damping, modal damping ratio, modal participation factor.
-
This is a balanced approach to managing a companies IT organization. Centralization Decentralization Federalism Joint - Control Business Centricity
-
Could the owner of a business prepare a statement of financial position on 9 December or 23 June or today?
-
An LP model can have more than one optimal solution. Is it possible for an LP model to have exactly two optimal solutions? Why or why not?
-
a. Formulate a mathematical programming model for ODPs power dispatching problem. b. Implement your model in a spreadsheet and solve it. c. What is the optimal solution? d. Suppose ODP can buy power...
-
Refer to the data in the file on your data disk named LaborForce.xls containing monthly data on the number of workers in the U.S. civilian labor force (in 1000s) from January 1998 through October...
-
Define these terms: a. Cooking the books b. Cookie jar accounting c. Bottom line d. EBIT e. EBITDA f. Off-balance-sheet financing g. Channel stuffing h. Bid rigging i. Big bath
-
Which statement is false with respect to SAS No. 99 ? a. SAS No. 99 supersedes SAS No. 82. b. An audit procedure to address the risk of management override would include examining journal entries and...
-
What is meant by the expectation gap?
Study smarter with the SolutionInn App