Calculation Packages

sales-of-the-day

Suppose you have a store and you want to record sales on your computer. Design an algorithm that reads for each customer the total amount of their purchase. At the end of the day you write down the total amount of sales and the number of customers served

1.0.0 • Published 4 years ago

votingsection

A polling station chief wants to determine how many people from each of the sections that make up his zone attend on voting day. The sections are: north, south and center. You also want to determine which section is with the highest number of voters.

1.0.1 • Published 4 years ago

array_swap_position

Make an algorithm that reads a N-element vector and swaps the positions of its elements so that the first element becomes the last and the last the first, the second the penultimate, and so on, and prints that vector.

1.0.0 • Published 4 years ago