top of page


Público·12 miembros

Quarterly Sales Statistics Java ((FREE))

Ask the user to enter four quarterly sales figures for six divisions of a company. The figures should be stored in a two dimensional array. Once the figures are entered, the program should display the following data:

quarterly sales statistics java


However, in this example the primitive type short int is used for both the monthly and the quarterly sales variables. In C the short int primitive type has a maximum value of 32768. This creates a potential integer overflow if the value for the three monthly sales adds up to more than the maximum value for the short int primitive type. An integer overflow can lead to data corruption, unexpected behavior, infinite loops and system crashes. To correct the situation the appropriate primitive type should be used, as in the example below, and/or provide some validation mechanism to ensure that the maximum value for the primitive type is not exceeded. 350c69d7ab

Acerca de

Welcome to the group! You can connect with other members, ge...
bottom of page