Question: i need asap C++ Naming Conventions. In C++ we select identifiers that are descriptive of the data being stored or the task being solved. We
i need asap
C++ Naming Conventions. In C++ we select identifiers that are descriptive of the data being stored or the task being solved. We will use the following rules for naming identifiers: For variable names, we begin with a lowercase letter and capitalize each successive word. Examples include payRate.lastName, and numberOfHours Worked. For constants, we capitalize every letter and use underscores to separate the English words. Examples include PI. MAX_WORDS, and OVERTIME_RATE. Programmer written functions will be capitalized in the same way as variable names but they will begin with a capital letter. Examples include FindArea and PrintResults. Exercise 4: For each of the identifiers below, select a meaningful identifier name that adheres to the naming conventions described above. a. A variable that could contain a test score. b. A constant that could contain the number of minutes in an hour. c. A function that could be used to convert a temperature in Fahrenheit to a temperature in Celsius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
