Q1.Write an algorithm to compute the quotient and reminder given that integer x(x >=0) is divided by another integer y(y>0). Assume that only addition and subtraction are the available arithmetic operation
Q2. Write an Algorithm to compute the perimeter and area of a triangle given the co_ordinates of its vertices

(1)
Write an algorithm to compute the quotient and remainder given that integer x(x>=0) is divided by another integer y(y>0). Assume that only addition and subtraction are the available arithmetics operations.
(2)
Write an algorithm to compute the perimeter and area of a triangle given the co-ordinates of its vertices

provide
(a) an algorithm
(b) flowchart
(c) pseudocode
(1) illustrate the assignment from 10 to x
If x<y otherwise 5 Is assigned to x
(2) compute the sum of the series ;
f(x) = 1+x+x^2+x^3+...........+x^n

The system to be developed for Williams and son needs to produce the following slip for a customer once the sale has been concluded
Write the pseudocode that will produce similar

Write the pseudocode that will produce a slip similar to the one illustrated at the beginning of the question.
Williams & Son
VAT nr: 0123456
Product Price
Screewdriver R 100
Super glue R20
Total R120

You have deployed the system for Williams & Son and all is going well. Mr. Williams is impressed
with the new system’s capability and how easy it is to use the system. Because of this, he has
asked you to modify the system so that it can automatically calculate discount for the customer
based on the total amount of their purchase. Mr. Williams has asked that the discount amount be
indicated on the slip as well as the amount due by the customer after discount has been applied.

A person enters the bank and stand in the queue to get his salary. When his turn comes, he request the cashier that i need my salary with minimum notes and coins. Write the program for the cashier that first ask the cashier to enter the salary amount and then display the number of notes and coins of (rs. 5000, rs 1000, rs 100, rs 50, rs 20, rs 10, rs 5, rs 2, rs 1)