View the step-by-step solution to:

COMP 2040-01 Homework 4 (Due: 3/23/10) I. Identify valid C# variable names from the given list: Stock_value, f(x), my grade, _200, Console, true,...

1. Declare an integer variable named degreesCelsius .
COMP 2040-01 Homework 4 (Due: 3/23/10) I. Identify valid C# variable names from the given list: Stock_value, f(x), my grade, _200, Console, true, “OK”, a+b, _3x, R&D, low-cost, 2009 II. Declaration, initialization and assignment 1. Declare an integer variable named degreesCelsius . 2. Declare a variable isACustomer suitable for representing a true or false 3. Declare a variable temperature and initialize it to 98.6 4. Declare an integer variable, MonthsInYear 5. Write a string variable and initialize it with your full name. III. Output Statement 1) Write an output statement that outputs the variable degreesCelsius. 2) Write an output statement that outputs the variable MonthsInYear. 3) Write an output statement that outputs the variables verbalScore and mathScore. 4)What is the output of the following statement, if x = 11, y = 12? Console.WriteLine("{0} + {1} = {2}", y, x, x+y); IV. Write the following expressions in C# form: 1. (x + y )(x-y) 2. 4(x-3y) + 5y 3. +
Background image of page 1

This question was asked on Mar 22, 2010.

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards