A community for students.
Here's the question you clicked on:
 0 viewing
anonymous
 one year ago
For each of the below variable names, indicate (with y or n) whether it is legal and whether it uses the proper style. You may skip the style portion for any that are not legal.
a. _isReady
b. 3rdName
c. num of wheels
d. money#on#hand
e. taxRate
f. SeatNumber
anonymous
 one year ago
For each of the below variable names, indicate (with y or n) whether it is legal and whether it uses the proper style. You may skip the style portion for any that are not legal. a. _isReady b. 3rdName c. num of wheels d. money#on#hand e. taxRate f. SeatNumber

This Question is Closed

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0@hartnn I would greatly appreciate your help!

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1variable names cannot start with a number or special character it should only start with an alphabet

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0Ok so a. n b. n c. y d. y e. y f. y

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1also there shouldn't be a space in between

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1also # is not allowed in the name

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0Oh. So a. n b. n c. n d. y, y e. y, y f. y, y

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1actually _ in the beginning is allowed! so 1st one is valid

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0Ok. But how do I know if they use the proper style?

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1and last 2 are valid, all others are invalid :)

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0How do I know if they use the proper style?

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0They want to know if they are legal and if they use the proper style

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1whats the proper style?

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0I have no idea. Maybe with the case?

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1i know about whether they are legal or not, i am not sure about styles.... try to dig it in your notes maybe?

anonymous
 one year ago
Best ResponseYou've already chosen the best response.0Ok thanks. It doesn't say anywhere. It only talks about proper identifier syntax

hartnn
 one year ago
Best ResponseYou've already chosen the best response.1http://www.c4learn.com/cprogramming/cvariablenameingrules/ here they have explained in more clarity for the naming rules.. will search styles on internet
Ask your own question
Sign UpFind more explanations on OpenStudy
Your question is ready. Sign up for free to start getting answers.
spraguer
(Moderator)
5
→ View Detailed Profile
is replying to Can someone tell me what button the professor is hitting...
23
 Teamwork 19 Teammate
 Problem Solving 19 Hero
 Engagement 19 Mad Hatter
 You have blocked this person.
 ✔ You're a fan Checking fan status...
Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.