Writing a program for a bank

Primary Response: Within the Discussion Board area, write 200–250 words that respond to the following questions with your thoughts, ideas, and comments. This will be the foundation for future discussions by your classmates. Be substantive and clear, and use examples to reinforce your ideas.

For this Discussion Board, please complete the following:

A computer program usually needs some variables with specific data types to store data. For example, a sale program may have a variable with decimal data type to store the item price data. Assume that you are the programmer hired by a bank to write a program for its automated teller machines (ATM). Give an example of a variable that you will use in the program, and answer the following questions:

What are the name and data type that you want to use for that variable?

Why are the name and data type appropriate for that variable?

ORDER THIS PAPER NOW

Discussion 1

What are the name and data type that you want to use for that variable?

We could use an amount variable to represent the amount of money in the bank balance in this instance. The data type utilized in this case is Integer, which is used to represent non-decimal real numbers (Alessandro, Anup & Harrold, 2012). On computers, various kinds of integer data types are stored in various ways. Integers are often represented as a set of binary digits in a computer known as bits. Due to the fact that the size of the grouping changes, the range of accessible integer sizes changes across various kinds of computers and programming languages (Kasten, Mckinley & sadjadi, 2012). A tiny integer, for instance, has a range of 32,767 to -32,768 in several common programming languages.

Why are the name and data type appropriate for that variable?

The values used in this case are considered to be of different currency value. In this case, integers will be appropriate as they allow the information to be presented in those values (Kasten, Mckinley & Sadjadi, 2012). An integer is a data type in computer programming that is used to represent whole numbers that do not include fractional values. Numerous integer data types are stored in a variety of ways on devices. A small integer, for example, has a range of 32,767 to -32,768 in numerous prominent programming languages. These limited ranges demonstrate the relationship between a numerical value as read by humans and how such values are stored in computer memory (Alessandro, Anup & Harrold, 2012).

References

Alessandro Orso, Anup Rao, and Mary Jean Harrold. A Technique for Dynamic Updating of Java Software. In Proceedings of the IEEE International Conference on Software Maintenance (ICSM). pp 649. October 2012.

E.P. Kasten, P. K. Mckinley, S. M. Sadjadi, R. E. K. Stirewalt. Separating    Introspection and Intercession to Support Metamorphic Distributed Systems. In Proceedings of the 22nd International Conference on Distributed Computing Systems (ICDCS), pp 465–472. July 2012.