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...
-
The four tires of an automobile are inflated to a gauge pressure of 200 kPa. Each tire has an area of 0.024 0 m2 in contact with the ground. Determine the weight of the automobile.
-
How will payroll deductions from employees' wages for their portion of 401(k) plans be recorded?
-
True or False. A technician should always be accompanied by an electrician from the customers site to open and test electrical equipment and never open live electrical cabinets.
-
Compumatics specializes in the analysis and reporting of complex inventory costing projects. Materials costs are minimal, consisting entirely of operating supplies (DVDs, inventory sheets, and other...
-
Describe the principal advantages of alternative dispute resolution. While a mediated settlement is not binding on the parties, it brings with it certain benefits. What are they? What are the...
-
Billingham Packaging is considering expanding its production capacity by purchasing a new machine, the XC-750. The cost of the XC-750 is $2.75 million. Unfortunately, installing this machine will...
-
For each description on the left, select the appropriate change in inventory level from the list on the right. (1 mark each) (3 marks) Absorption costing operating income is higher than variable...
-
a. A brief summary of the important concepts and strategies/techniques contained in the book. b. How you would use the chosen techniques/strategies in your life. c. What improvements you expect in...
-
9. A reinsurer is participating in a surplus share treaty with the following parameters: The insurer's Retention is: $100,000 The reinsurer retains the first 4 Lines (or $400,000) Calculate the...
-
Empowering employees is a buzzword in management nowadays. Sometimes it is easier said than done. What are some of the things that need to be available for employees before they are empowered? What...
-
During the pandemic, the use of telemedicine for primary care visits has significantly increased. From a patient's standpoint, how does telemedicine affect the demand for primary care visits? Think...
-
After you purchased a flannel coat from the retail clothing chain Zara, you got an email from Zara with the subject 'Boost the look'. The email showcased different shoes from Zara that would match...
-
Problem 3. (a) Is it possible to arrange the six digits 1, 2, 3, 4, 5, 6 to form a 6-digit number so that this number is divisible by 11? (b) Is it possible to arrange the seven digits 0, 1, 2, 3, 4,...
-
Explain the circumstances that could result in a long-term bank loan being shown in a statement of financial position as a current liability.
-
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...
-
1. Describe the bases of power held by Dr. Jamie Thompson. Describe the bases of power held by Dr. Elizabeth Clarke. 2. What activities and people have contributed to Jaime Thompsons power? What...
-
What is the current in the wire in Figure Q22.1? 1.0 VR + 1.0-1.0V + FIGURE Q22.1
-
Electroplating uses electrolysis to coat one metal with another. In a copper-plating bath, copper ions with a charge of +2e move through the electrolyte from the copper anode to the cathode the metal...
Study smarter with the SolutionInn App