Purchase Solution

Discussing Variables and Constants

Not what you're looking for?

Ask Custom Question

Define and study the terms "variable" and "constant" as used in computer programming. Determine the various types of data (such as char, int, double, string, and date) that can be used in developing a solution. Describe how and when you would use one over the other in a simple solution to calculate the grade average for a class. Each student record includes the student's name, homework grades, test grades, and participation grades.

Purchase this Solution

Solution Summary

This solution helps go through variables and constants within the concept of programming languages.

Solution Preview

A "variable" in the computer terminology refers to a place in memory where information is kept. It is a placeholder that can be updated with new data when required, hence the name variable. For example, the speed of a car is variable and a program that tracks the movement of a car can use a variable to store its speed.

On the other hand, a constant, is also a placeholder for data, but only meant to be filled in once. A constant can be used with some data that never changes. For example, the value of PI ...

Purchase this Solution


Free BrainMass Quizzes
Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Basic Networking Questions

This quiz consists of some basic networking questions.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.