top of page


Inventory Stock Checker


1 Easy

8 Practise Exam Questions


Write a program to calculate the total stock of items in a 2D array where each row represents an item and the columns represent different warehouse stock levels. Output the total stock for each item.

Inputs: 2D array of stock levels. Outputs: Total stock per item. Calculations: Sum each row. Variables: stock, total_stock.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page