-
Algorithm to input the price of a textbook
Write an algorithm to input the price of a textbook. Calculate the price and print the total cost of the book after 15% VAT is added
-
Prime Integer
Suggest two different methods of knowing if a given integer is prime and analyse them.
-
To calculate distance between two text strings
Give an algorithm that calculates the distance between two text strings (only operations you can have are: delete, add, and change, one by one).
-
encapsulation and information hiding
What are the differences between encapsulation and information hiding? How are these two concepts related? Explain.
-