Algorithms for Cost and Savings Calculations
Algorithms for Cost and Savings Calculations
2 'The Satisfied Castaway' offers single (S), double (D), and triple (T) hamburgers, which
they cost $20, $25, and $28 respectively. The company accepts credit cards with a
5% charge on the purchase. Assuming that customers buy N hamburgers, which
They can be of different types, create an algorithm to determine how much they should pay.
Represent it in flowchart, pseudocode, and diagram
4.5 An algorithm is required to determine how much a person will save in pesos daily,
and in a year, if he saves 3¢ on January 1, 9¢ on January 2, 27¢ on January 3, and so on
successively throughout the year. Represent the solution using a flowchart, the pseudocode
and the N/S diagram, using the appropriate cycle.
4.8. Create the algorithm to determine how much a person will pay for acquiring N items, the
which are on promotion. Consider that if your price is greater than or equal to $200, a discount is applied.
15% discount, and if its price is greater than $100 but less than $200, the discount is 12%; of
the opposite, only 10% is applied. It must be known what the cost is and what the discount each will have.
one of the items and finally how much will be paid for all the obtained items. Represent the
solution using the flowchart, the pseudocode, and the N/S diagram.
4.11 Create an algorithm and represent it with a flowchart to obtain a function.
exponential, which is given by:
4.14 Create an algorithm to read the grades of N students and determine the number of
approved
4.17 Create an algorithm to obtain the multiplication table of an integer K starting from
1. Represent it using a flowchart, pseudocode, and N/S diagram.