Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 2, Problem 11RQ
Program Plan Intro
To mention the type of variable that can hold values true and false.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
One variable can have only _____________ value
Y = Math.sqrt(4) * Math.abs(4)The value of Y is ______
a.
8
b.
-16
c.
16
d.
-8
13-
isset(); function returns _________ value.
a.
None
b.
Boolean
c.
Integer
d.
String
Chapter 2 Solutions
Microsoft Visual C#
Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Assume that you have two variables declared as int...Ch. 2 - Assume that you have a variable declared as...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Prob. 8RQCh. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...
Ch. 2 - Prob. 11RQCh. 2 - Which of the following is not a C# comparison...Ch. 2 - Prob. 13RQCh. 2 - Which of the following C# types cannot contain...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - When you perform arithmetic operations with...Ch. 2 - Prob. 18RQCh. 2 - Prob. 19RQCh. 2 - Which of the following compares two string...Ch. 2 - What is the numeric value of each of the following...Ch. 2 - What is the value of each of the following Boolean...Ch. 2 - Choose the best data type for each of the...Ch. 2 - In this chapter, you learned that although a...Ch. 2 - Write a C# program named InchesTOCentmeters that...Ch. 2 - Prob. 6ECh. 2 - Write a C# program named ProjectedRaises that...Ch. 2 - Convert the ProjectedRaises class to an...Ch. 2 - Malcolm Movers charges a base rate of $200 per...Ch. 2 - Prob. 10ECh. 2 - Write a program named Eggs that declares four...Ch. 2 - Modify the Eggs program to create a new one named...Ch. 2 - Write a program named MakeChange that calculates...Ch. 2 - Write a program named Testslnteractive that...Ch. 2 - Write a program named FahrenheitToCelsius that...Ch. 2 - Prob. 16ECh. 2 - Prob. 17ECh. 2 - Pig Latin is a nonsense language. To create a word...Ch. 2 - Each of the following files in the Chapter.02...Ch. 2 - In Chapter 1, you created two programs to display...Ch. 2 - Prob. 2CP
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- int my_num = 100.0; b- int $my_num = '10000': int myNum = 100%3B d- int my num 100000; a- 1) Which one is a valid variable declaration? C-arrow_forwardThe equal sign in an assignment statement is called the_________ .arrow_forwarduppose you have a certain amount of money in a savings account that earns compoundmonthly interest, and you want to calculate the amount that you will have after a specificnumber of months. The formula, which is known as the future value formula, is:F=P×(1+i)tThe terms in the formula are as follows:o F is the future value of the account after the specified time period.o P is the present value of the account.o i is the monthly interest rate.o t is the number of months.Write a program that prompts the user to enter the account’s present value, monthlyinterest rate, and the number of months that the money will be left in the account. Theprogram should pass these values to a function named futureValue that returns thefuture value of the account, after the specified number of months. The program shoulddisplay the account’s future value. i attached the screenshot of the output so the output should look like that. the coding should be in c++arrow_forward
- The data type of a variable used to store a person's age (ie 25) should be ___________. A String B Text C Float D Integerarrow_forward= 1000; int myNum b- double my_num= 100; 4) а- Which one is NOT a valid variable declaration? c- int my_num = '10" d- int mynuml = 10 7/Parrow_forward2 EmployeeBonus.py - This program calculates an employ Summary productivity bonus. In this lab, you complete a prewritten Python program that calculates an employee's productivity 4 bonus and prints the employee's name and bonus. 5 # Initialize variables here. 6 BONUS_1 = 50.00 7 BONUS_2 = 75.00 Bonuses are calculated based on an employee's productivity score as shown in the table below. A 8 BONUS_3 = 100.00 productivity score is calculated by first dividing an employee's transactions' dollar value by the 9 BONUS_4 = 200.00 number of transactions and then dividing the result by the number of shifts worked. 10 11 employeeName = input("Enter employee's name: ") 12 shiftString = input("Enter number of shifts: ") 13 transactString = input("Enter number of transactions 14 dollarString = input("Enter transactions dollar valu 15 |16 numShifts = float(shiftString) |17 numTransactions = float(transactString) |18 dollarValue = float(dollarString) Productivity Score Bonus <30 $50.00 31 - 69…arrow_forward
- c# Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F) input as a string. Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue the error message "Sorry - invalid salesperson" for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Z or z for an initial, display each salesperson’s total, a grand total for all sales, and the name of the salesperson with the highest total unless there is a tie. If there is a tie, indicate this in the program's output with the message: "There was a tie". An example of the program is shown below: Enter a salesperson initial >> D Enter amount of sale >> 10 Enter next salesperson intital or Z to quit >> d Enter amount of sale >> 2 Enter next salesperson intital or Z to quit…arrow_forwardExomple-3: Write a program to calculate the Area and volume for a sphere. Scl. -The area of sphere 4 *PI Radius *Radius. -The Volume of sphere 4/3 PI* Radius Radius "Radius. %3D -Note: Pl 3.14arrow_forwarddef integer_0_or_1(interger): #if value is true return 1 if truth_value: return 1 else: #else return 0 return 0def truth_value(integer): """Convert an integer into a truth value.""" # Convert 0 into False and all other integers, # including 1, into True if integer == 0: truth_value = False else: truth_value = True return truth_value print(truth_value(True))print(truth_value(False)) This question assesses Block 2 Part 4. It assumes an understanding of binary notation and truth tables (Block 1 Part 1). Write a function and_binary(), which takes two integers (each is either 0 or 1) and returns an integer in accordance with the truth table: A B and_binary(A, B) 0 0 0 0 1 0 1 0 0 1 1 1 Before you dive into writing your function, first decompose the problem. Then, write an algorithm. Only after that, implement your solution in Python. Hint: When you have decomposed the…arrow_forward
- O A variable is used before it is assigned a value. What is the output for the following code snippet: area = 25 print("The area is %05d" % area) Select one: O The area is 25 O The area is 00025 O nothing, there is an error in the code snippet The area is 25arrow_forwardPlease written by computer source # with visual studio. Windows Form app (.NET Framework)arrow_forwardBy default, global variables are static variables. Select one: O True O False Next pagarrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT