Question: Explain why each of the following names does or does not seem like a good variable name to you. a. D b. Dsctamt c. DiscountAmount

Explain why each of the following names does or does not seem like a good variable name to you.
a. D
b. Dsctamt
c. DiscountAmount
d. Discount Amount
e. Discount
f. DiscountAmountForEachNewCustomer
g. DiscountYear2015
h. 2015 Discount year

Step by Step Solution

3.45 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a D is too short and generic to be a good variable name b Dsctamt is too abbreviated to be a ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Logic & Design Comprehensive Questions!