Posts Tagged ‘C++’
Write a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).
LANGUAGE: C++ CHALLENGE: Write a declaration for a variable channel that can hold TV channel numbers (1 to 900) and a variable hours_recorded that can hold the number of hours of TV recorded (numbers like 1.0 or 3.5).
Read MoreWrite a declaration for variables length, width, and area that can hold values like 13.5 and 14.6.
LANGUAGE: C++ CHALLENGE: Write a declaration for variables length, width, and area that can hold values like 13.5 and 14.6.
Read MoreWrite a declaration for an integer variable area and a variable price that can hold numbers with decimal places.
LANGUAGE: C++ CHALLENGE: Write a declaration for an integer variable area and a variable price that can hold numbers with decimal places.
Read MoreWrite a declaration of an int variable year and initialize it to 365.
LANGUAGE: C++ CHALLENGE: Write a declaration of an int variable year and initialize it to 365.
Read MoreWrite a statement that declares an int variable presidentialTerm and initializes it to 4.
LANGUAGE: C++ CHALLENGE: Write a statement that declares an int variable presidentialTerm and initializes it to 4.
Read MoreWrite a declaration of a variable named numberOfWidgets that can be used to hold numbers like 57 and 981 and -4.
LANGUAGE: C++ CHALLENGE: Write a declaration of a variable named numberOfWidgets that can be used to hold numbers like 57 and 981 and -4.
Read MoreWrite a declaration for a variable hits that can hold the number of times a baseball player has hit the ball in a baseball game.
LANGUAGE: C++ CHALLENGE: Write a declaration for a variable hits that can hold the number of times a baseball player has hit the ball in a baseball game.
Read MoreWrite a declaration of a variable named number_of_children that can be used to hold the number of children in a family.
LANGUAGE: C++ CHALLENGE: Write a declaration of a variable named number_of_children that can be used to hold the number of children in a family.
Read MoreWrite a declaration of a variable named count that can be used to hold numbers like 90000 and -1 and -406.
LANGUAGE: C++ CHALLENGE: Write a declaration of a variable named count that can be used to hold numbers like 90000 and -1 and -406.
Read MoreDeclare a long integer variable named grossNationalProduct.
LANGUAGE: C++ CHALLENGE: Declare a long integer variable named grossNationalProduct.
Read MoreWrite declaration statements to declare and initialize two variables : one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5.
LANGUAGE: C++ CHALLENGE: Write declaration statements to declare and initialize two variables : one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5.
Read MoreWrite a statement that declares a double variable named dosage.
LANGUAGE: C++ CHALLENGE: Write a statement that declares a double variable named dosage.
Read More