Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can u please show me how to write variables for the last 3 Over think this assig

ID: 3670311 • Letter: C

Question

can u please show me how to write variables for the last 3 Over think this assignment It's really quite easy. All you need and all others are the same pattern. No calculations needed this time! Here are the data descriptions for which variables are needed: A named numeric constant for one dozen A T/F setting for whether a certain light is on The zip code for your hometown The retail price for an item in REI's inventory The number of those inventory items in stock Most recent close for the Dow Jones industrial Average The placer county sales tax rate Emily's letter grade in MATH-0029 Ethan's full name An Amazon book's ISBN- 13 code The area of a geolocation circle (use the data type for this one) (stock market index-Google this?) (use a constant - Google this?)

Explanation / Answer

A variable definition tells the compiler where and how much storage to create for the variable. A variable definition specifies a data type and contains a list of one or more variables of that type as follows

A variable declaration provides assurance to the compiler that there exists a variable with the given type and name so that the compiler can proceed for further compilation without requiring the complete detail about the variable. A variable declaration has its meaning at the time of compilation only, the compiler needs actual variable declaration at the time of linking the program.

A variable declaration is useful when you are using multiple files and you define your variable in one of the files which will be available at the time of linking of the program. You will use the keyword extern to declare a variable at any place. Though you can declare a variable multiple times in your C program, it can be defined only once in a file, a function, or a block of code.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote