COMP 2140 Computer Programming I Assignment-1 (1) Identifier (10 Points) Identif
ID: 3880532 • Letter: C
Question
COMP 2140 Computer Programming I Assignment-1 (1) Identifier (10 Points) Identify valid C# variable names from the given list. V7Stock value Hi there mygrade string 200 b) c) e) g) abca yahoo R&D; k) Low cost 2013 OK" n) (2) Declaration (15 Points) (In the questions below, the bolded words are the names of variables that you should use in your answers) 1. Declare an integer variable named degreesCelsius suitable for representing temperature. 2. Declare variables name suitable for storing a string. 3. Declare integer variables monthsIn Year and daysIn Month and assign 12 for monthsInYear and assign 30 for daysIn Month. 4. Declare a double variable numberPI and assign 3.14 to it.Explanation / Answer
If you post more than 1 question, as per chegg guidelines I have to solve only 1 question.
Q2.
1)
int degreeCelsius;
2)
String name;
3)
int monthsInYear;
int daysInMonth;
monthsInYear = 12;
daysInMonth = 30;
4)
double numberPI = 3.14;
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.