If the intNum1 and intNum2 variables contain the numbers 10 and 7, respectively, the condition intNum1 + 40 – 1 <= intNum2 ^ 2 evaluates to_________ .a. False b. No c. True d. Yes
Q: What will happen if you use JOptionPane.showMessageDialog statement in your program? Select one: O…
A: Answer: Answer-1: The correct option is (e): The program will display a message dialog box…
Q: Create a code that ask the user to enter a number of days he/she wants to subtract from todays' date…
A: The problem does not specifies any particular programming language for the problem's solution. So,…
Q: The date June 10, 1960, is special because when it is written in the following format, the month…
A: <!DOCTYPE html> <html> <head> <title>Special Date…
Q: The date June 10, 1960, is special because when it is written in the following format, the…
A: Given : The date June 10, 1960, is special because when it is written in the following format, the…
Q: Examine the code below. Which if statement below will execute? mouseX = 250; mouseY = 50; f(mouseX…
A: Solution :
Q: Which value can be entered to cause the following code segment to display the message: That number…
A: Objective: According to the given question, the correct input from a set of inputs needs to be…
Q: If u = 2, v = 3, w 5, x = 7, and y = 11, what is the value of each of the following expressions,…
A: All the results along with the explanation are given below.
Q: Assume you're writing this menu-driven program for a shipping company. There are two types of…
A: #include <iostream> #include <iomanip> #include <string> using namespace std;…
Q: This program displays a message box including the name of day when th user input it's number. (For…
A: F) 1 - x = CInt(Text1.Test) 2 - Select Case x 3 - Case 7
Q: * ?Which of the following is a valid Visual Basic conditional statement 2 <n Or < 5 O 2 <n Or 5 O (2…
A: Relational & logical operators in VB: A Relational (also known as a comparison) operator…
Q: In college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: 1) Below is C program to that ask the user to input midterm and tentative final grade, calculate…
Q: ercise 4. Write a program that prompts the user to enter the date as three ger values for the day,…
A:
Q: The program prints the user's identifier (which could be an email address, a phone number, or a…
A: Below I have provided the java code of the given program. Also, I have attached the output of the…
Q: What type of variable will result from each of the following: i) variable1 = 5 <= 10 ii) variable2 =…
A: I) A boolean variable will be made because of "variable1 = 5 = 10". A boolean variable has just two…
Q: In the following flowchart, what value of SNUM will be printed? BEGIN NUM=6 SNUM=NUM²-1 NUM=NUM-1…
A: b. SNUM = 18
Q: Variable n is an integer variable. Which if statement checks if the variable n contains a number…
A: Answer is option b b. if (n % 10 == 7)
Q: Create a conditional expression that evaluates to string "negative" if userVal is less than 0, and…
A: #include <iostream>#include <string>using namespace std; int main() {string condStr;int…
Q: Evaluate the following expression. Make sure to give a value of the appropriate type (such as…
A: Introduction: Here we are require to evaluate the value of expression, and match the choices of the…
Q: You are given two variables one is associated with a float ahd hame talweight, containing the weight…
A: Please find the answer below :
Q: Many documents use a specific format for a person's name. Write a program whose input is: firstName…
A: Note: Programming language is missing in the question. So we will answer this program in Python…
Q: Using VB 1. intNum = strZip.Length is a statement that assigns the number of characters in the…
A: Length function counts the number of characters present in string variables.
Q: Create a conditional expression that evaluates to string "negative" if userVal is less than 0, and…
A: To create a conditional expression, by adding some code statements to the given program code to…
Q: In the below table, if a sale man attain a sale volume of $6000, he will be paid $6000x15%=$900.00.…
A: - We need to select the correct one for completing the code provided. - The first line has to fill…
Q: What will happen if you use JOptionPane.showMessageDialog statement in your program? Select one: O…
A: Use of JOptionPane.Dialoge in the program valid nextByte() return value
Q: WHat is the pseudocode and flowchart #include using namespace std; int main(){ int x; cout>x;…
A: We are given a c++ code and we are going to express its flow chart and pseudocode. Please refer to…
Q: A customer want to buy five items. He has only 75.0 OMR with him. The price of the products are…
A: Solution: We will keep a counter i for the while loop to traverse the array. We will keep a check…
Q: Create a flowchart that ask a user to input a student name, student number , four (4) periodical…
A: The flowchart is given below.
Q: A customer want to buy five items. He has only 75.0 OMR with him. The price of the products are…
A: No.of items = 6 Total_Cost = 0 items = 0 Total_OMR = 75 while items !=No.of Items Add…
Q: If the intUnits and dblPrice variables contain the numbers 5 and 12.45, respectively, the intUnits…
A: The value of intUnits is 5 and value of dblPrice is 12.5. The sub expression intUnits > 0 will…
Q: Write a number activity and then circle the circle or square. Input will be on form (letter I,…
A: Please refer below for your reference: Language used is C++: I am using a function called perimeter…
Q: Consider the following code segment: If dblHeight <= 100 Then dblHeight = dblHeight * 0.66 Else…
A: If-Else is just a conditional statements where If block gets executed if specified condition is True…
Q: What will the following Code segment print on the screen? int P = 30; int Q = 20;…
A: Given data: int P = 30;int Q = 20;System.out.println("Your Total purchase is \n" + (Q*P) +"…
Q: Q2] ( Write a program to enter the value of three variables in TextBoxes. Find and print (the…
A: Answer: Algorithms Step1: first ask to user to for given input num1,num2,num3 Step2: we have…
Q: What will the following segment of code output if the value 11 is entered at the keyboard? int…
A: According to the Question Complete Solution in Step 2 and Step 3
Q: (2) jlibäi Which one of the following (2 statements use to print the ? value of the variable num1…
A: cout<<num1<<endl Is correct option
Q: Which statement correctly computes and stores the are Select one O A. double area = Math.PI*r*r; %3D…
A: A. double area = Math.PI*r*r;
Q: Evaluate the following expression (false -24 * && true) || false || true 1 O • False • Not of the…
A: Question 24-- answer-1 explanation- false&&true will give false…
Q: Which value can be entered to cause the following code segment to display the message: That number…
A: PROGRAM: #Getting input from the user number=int(input()) #Checking the number value between the…
Q: This program displays a message box including the name of day when the user input it's number. (For…
A: 1 - x = Cint(Text1.Text) 2 - Select Case x 3 - Case 7
Q: program that prompts the user to enter the monthly salary amount of a act a 29% amount as a…
A: GIVEN: Create a Java program and get the monthly salary amount in OMR from the user. Deduct 2%…
Q: Q1) Write a program that can accept male and female to enter the website. If the user MALE it must…
A: As per policy, only the first question is answered as you have asked multiple questions in a single…
Q: 4. Pete's Pizzeria wants a program that displays an employee's weekly gross pay, given the number of…
A: Code in c++ as no coding language is mentioned: #include <iostream>using namespace std;int…
Q: 11 - final question Choose the correct set of statements to set all textbox values in the Form to…
A: The correct statements to set all textbox values in the form to 0
Q: In college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: use while(true) loop to check if input grade is valid or not. pass the MG and TFG to…
Q: If the intUnits and dblPrice variables contain the numbers 5 and 12.45, respectively, the intUnits…
A: intUnits = 5 dblPrice = 12.45 intUnits > 0 is true since intUnits is greater than 0. intUnits…
Q: // A standard mortgage is paid monthly over 30 years. // This program is intended to display 360…
A: Answer: for(int i=0; i<30;i++)//this loop is for the year for(int i=0;j<12;j++) printf("the…
Q: What will be displayed when you run the following code? a = 0; while a < 20 a = a + 8; end disp…
A: Given:
Q: Choose all the valid variable names. A Five5_five5 savings#account C) wage125 2022 tax E double
A: Some of the rules for naming variables are: Variable name contains letters which may be uppercase…
Q: What will the following segment of code output if the value 11 is entered at the keyboard? int…
A: The given C++ code has to perform the following tasks. It declares the variable “number” in type of…
Q: Many documents use a specific format for a person's name. Write a program whose input is: firstName…
A: This program can be done in a very easy way. Programming instruction: First, take the input from the…
If the intNum1 and intNum2 variables contain the numbers 10 and 7, respectively, the condition intNum1 + 40 – 1 <= intNum2 ^ 2 evaluates to_________ .
a. False
b. No
c. True
d. Yes
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Assume that the following variables contain the values shown:numberBig = 100numberMedium = 10numberSmall = 1wordBig = "Constitution"wordMedium = "Dance"wordSmall = "Toy”For each of the following Boolean expressions, decide whether the statement is true, false, or illegal.a. numberBig > numberSmallb. numberBig < numberMediumc. numberMedium = numberSmalld. numberBig = wordBige. numberBig = "Big"f. wordMedium > wordSmallg. wordSmall = "TOY"h. numberBig <= 5 * numberMedium + 50i. numberBig >= 2000j. numberBig > numberMedium + numberSmallk. numberBig > numberMedium AND numberBig < numberSmalll. numberBig = 100 OR numberBig > numberSmallm. numberBig < 10 OR numberSmall > 10n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1o. wordSmall > wordBigp. wordSmall > wordMediumint 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-5. Number of conditions checked in else-if is _______.
- # Global constant for body mass which is equal to 703 # Create variables and initialize all of them to 0.0 # create variable weight # create variable height # create variable BMI # input the weight from the user. # input the height from the user. # Calculate the body mass: # BMI is equal to weight * body mass divided by (height * height) # Display BMI. # Determine and display weight category if is greater then 25 you are overweight. # if is less then 18.5 is underweight otherwise is good # display all variablesFinancial Assistance Application Create the Financial Assistance Application. A non-governmental organization needs your application to calculate the amount of financial assistance for needy families. The formula is as follows: • If the annual household income is between $30,000 and $40,000 and the house- hold has at least three children, the amount is $1,000 per child. • If the annual household income is between $20,000 and $30,000 and the house- hold has at least two children, the amount is $1,500 per child. • If the annual household income is less than $20,000, the amount is $2,000 per child. Implement a function for this computation. The program asks for the household income and number of children for each applicant, printing the amount returned by your function. Use -1 as a sentinel value for the input. The program output should be formatted as shown in the Sample Run. Note: You must use at least one function in your code.= 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/P
- To evaluate a int data type using switch, the evaluated variable needs to be enclosed in single quotation marks. True FalseThe -= operator is an example of a(n) __________ operator.a. relationalb. augmented assignmentc. complex assignmentd. reverse assignmentQUESTION 2 3 points Save Answer Write a Java program to do the following task: Assign your id number (example.. 2014299123) to an integer variable id_num Using reminder operator % on the id_num get the last 5 digits (99123) and store it in num If the num is between 0 and 30,000 (both included), display "You are in Group 1" Otherwise if the num is between 30001 and 60,000 (both included), display "You are in Group 2" Otherwise (num is between 60,001 and 99,999 (both included), display "You are in Group 3" Save your file as Q2.Java and upload it.
- i. numberBig >= 2000 j. numberBig > numberMedium + numberSmall k. numberBig > numberMedium AND numberBig numberSmall m. numberBig 10 n. numberBig = 300 AND numberMedium = 10 OR numberSmall = 1 o. wordSmall > wordBig p. wordSmall > wordMediumComputer Science You have been asked to create a subroutine that will ask the user for his/ her number of siblings and display the value in a dialog box. Provide the code to create this subroutine, named get_numofSiblings. Create a public variable for siblings. The dialog box should display the following text exactly, where the number 2 will be replaced by the number of siblings the user enters: You have 2 siblingsGPA Calculator Students are concerned about their GPA. They need to calculate it accurately every semester to monitor their progress. Develop a GPA calculator that follows the AOU regulations (AOU-OU Grade Scale) using C# programming language. The application asks the student to enter his numeric grade of each course and the course's credit hours. Accordingly, the application calculates the student's GPA after converting the numeric grade to letter grade. The GPA calculation should produce floating-point results. Display the results rounded to the nearest hundredth. You should store the letter grades of all student's courses in an array. The final grade of the student should be also calculated. Sample I/O Enter the course grade (-1 to end): 93 Enter the course credit hours: 3 Enter the course grade (-1 to end): 74 Enter the course credit hours: 2 Enter the course grade (-1 to end): 60 Enter the course credit hours: 3 Enter the course grade (-1 to end): -1 The grades of your courses…