The expression 6*4 – 3 * 2 = 18 evaluates to__________ a. True b. False
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: hat is the lvalue assigned to given the following? int('9.9') = integer A.…
A: “int ('9.9')”- Based on this code, the integer type is stored by using the syntax of string…
Q: Example 3: Write pseudo code that performs the following: Ask a user to enter a number. If the…
A: - The question is to solve the example number 3.
Q: Equivalent Grade Point 1.0 99-100 2.25 84-86 1.25 96-98 2.50 81-83 1.50 93-95 2.75 78-80 1.75 90-92…
A: Answer: I have given answered in the handwritten format
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: 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: the following code. Which statement is CORRECT? int *a, b3D903B b=a3; *a = &b; *b = a; a=&b;
A: Answer: *a=&b
Q: 2. Trace the following flowchart for value (number=131): www number X T Output messages A Engine xox…
A: TRACE TABLE : NUMBER X T Output message 131 0 131 No Output 121 1 131…
Q: Write a program which reads two integer values. If the first is less than the second, print the…
A: Here I have declared 2 variables num1 and num2 of integer data type. Next, I have taken input from…
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: PROGRAM: //Header package using System; //Defining class class MainClass { //Defining main()…
Q: Write a program that calculates the factorial of a number N, where N is requested from the user.
A: Check the code below.
Q: he Billy Goat Fast-Fast Food restaurant sells the following products: Product Price ($)…
A: items = ['Cheeseburger','Pepsi','Chips']price = [2.49,1.00,0.59]print('Items\t\t\tPrice($)')for i in…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: This program will make use of Scanner class defined in java.util package used to take user specific…
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: The solution for the above-given question is given below:
Q: Write an application that displays the factorial for every integer value from 1 to 10
A: A factorial of a number is the product of that number multiplied by each positive integer lower than…
Q: numberBig > numberSmall numberBig wordSmall wordSmall = "TOY" numberBig = 2000 numberBig…
A: A boolean expression is an expression, whose result is either true or false. It contain variables…
Q: Assume that the variable x is a double value. Which code keeps only 3 digits after the decimal point…
A: Given Assume that the variable x is a double value. Which code keeps only 3 digits after the decimal…
Q: Write an application that inputs three integers from the user and displays the sum, average,…
A: You didn't mention any programming language, hence according to Bartleby policy, I have answered in…
Q: IV. Declare Variables: (10%) 1. Declare two String variables for user's name and his/her best…
A: Program starts execution from main method. Program has two variables for name storage and two…
Q: What does this code print? a = True b = False c = False %3D if a or b and c: print ("Hello") else:…
A: In python, the or & and operators are used to compare two objects, The and operator evaluates -…
Q: Find and correct the errors in the following code segment that computes and displays the average:…
A: Given program consists of two integers x and y. To find the average of these two numbers (x+y)/2 is…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: Note: Below is the required program in C++. Programming Approach: Defining the required header…
Q: Create a program that calculates the interest on a loan. This program should make it easy for the…
A: According to the information given:- We have to follow the instruction to get the desired outcome
Q: 1.Create simple number guessing game as follows. First, prompt the user to enter a min and max…
A: Given: please use java to answer the following question
Q: Assume that the following variables contain the values shown: numberBig = 100 numberMedium = 10…
A: Given Data numberBig = 100numberMedium = 10numberSmall = 1wordBig = "Constitution"wordMedium =…
Q: Valuate the given expressions. All values are an integer folnat. inta=10,b=11c-16,d-0,e-2 Question 1…
A: Operator precedence:- and associativity ,
Q: Create a VB.NET Console Application that uses the While loop to display all leap years between 2010…
A: Algorithm: 1. Start 2. Initilaize y to 2010 3. Using while loop traverse from 2010 to 2050 4. Inside…
Q: Write an application that prompts the user for two integers and then prompts the user to enter an…
A: // C++ program #include <iostream> using namespace std; int main() { int a,b,ch;…
Q: Which of the below Java statements finds the sum of 100, 200, 300, ..., 900, 1000? Select one: a.…
A: The code snippets given are C/C++ /Java code snippets. They can be copied to the IDE and executed to…
Q: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
A: Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit…
Q: What is output by the code below? batteryLife = 15 if batteryLife 90: print("Mostly Charged…
A: answer is : Low Battery Explanation : here the battery life is 15 first it will goes to if…
Q: 12. Write a program that will ask the user to enter 10 numbers and display the largest number…
A: Given:
Q: Write a program that will ask the user to enter 10 numbers and display the largest number entered.…
A: Note - As per our guidelines, we can provide solution only for one question. Since you have asked…
Q: Assuming that a user enters 9, 23, and 3 as input values one after another, separated by spaces,…
A: In step 2, you will get the answer.
Q: Assume that the variable x is a double value. Which code keeps only 4 digits after the decimal point…
A: Assume that the variable x is a double value.
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: Using C++, write a program for a "6/15 Lottery Game". Please take note of the following: 1. It must…
A: I have followed all the instructions, have followed all the scenarios and played the game. let's see…
Q: s. Create a program that will allow a user to enter 2 numbers using input dialog boxes and calculate…
A: Introduction:
Q: 1. Please use Visual Studio or Xcode to create a program that asks user giving you 2 numbers, your…
A: Since no programming language is mentioned, I am using python. 1. Algorithm; Start Read first…
Q: While exercising, you can use a heart-rate monitor to see that your heart rate stays within a safe…
A: Algorithm: 1. take user input of age 2. find max hear rate by using given formula 3. find range by…
Q: 1. Write an application that converts a weight in pounds into kilograms (1 pound equals 0.45359237…
A: Program Explanation- The pound-to-kilos conversion factor. To get user input, use the Scanner…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: #include<iostream> using namespace std; int main(){ //variables to store each test score,…
Q: Write a program named TestsInteractive that prompts a user to enter eight test scores and displays…
A: NOTE - I have used Python programming language. Here I have created a list to store the scores.…
Q: Write an application that prompts a user for a month, day, and year. Then display
A: import java.util.*; import java.time.*; public class PastPresentFuture { public static void…
Q: The Jumpin’ Jive coffee shop charges $2 for a cup of coffee and offers the add-ins shown in the…
A: Program approach: Create main function. Declare parallel array for nameOfProduct. Declare parallel…
Q: What will the following code display?try:x = float('abc123')print(x)except IOError:print('This code…
A: Exceptions An exception occurs when some wrong input is being entered by the end-user or read from…
Q: Variables n, n1 and n2 are integer variables, and n1 n1 && n= n1 && n n1 and n= n1 ||n <= n2)
A: As per our guidelines we are supposed to answer only one question. Kindly repost other questions as…
Q: The code below was designed to count the number of values entered by the user using the keyboard,…
A: Given We know about the programing .
Q: Write a program that asks the user to enter their monthly costs for each of the following…
A: Please find the answer below :
The expression 6*4 – 3 * 2 = 18 evaluates to__________
a. True
b. False
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 > wordMediumThe C++ keyword used to declare a character is _____. Group of answer choices chars char character string ------------------ Which of the following is an Assignment? a.) int x;b.) x = 5;c.) y = x + 2; Group of answer choices a b c a and b b and c All of the above None of the aboveWrite a statement that assigns my exam score with 82 write a statement that assigns mycurvedexamscore with my exam score + 5
- create an application that will find the largest and the smallest number of a series of integers input by the user. Assume that the user will input only integers that are between -100 and 100 (both inclusive) (no need to validate the input). When the user inputs 101, the application should output the smallest and the largest number.Write an application that prompts the user for two integers and then prompts the user to enter an option as follows: 1 to add the two integers, 2 to subtract the second integer from the first, 3 to multiply the integers, and 4 to divide the first integer by the second. Display an error message if the user enters an option other than 1 through 4 or if the user chooses the divide option but enters 0 for the second integer. Otherwise, display the results of the arithmetic.Assuming the following code: int x = myfunction1(); /* arbitrary value */ int y = myfunction2(); /* arbitrary value */ int z = myfunction3(); /* arbitrary value */ //convert to double double dx = (double) x; double dy = (double) y; double dz = (double) z; unsigned ux = x; unsigned uy = y; The following statement always evaluates to 1 (True or False): dx - dy == (double) (x-y) Question 3 options: True False
- I am trying to create a lottery game application in Java. I want it to generate three random numbers between 0 and 9 (including 0 and 9). Then, the user will input their three guesses of what the winning numbers will be. Next, compare each of the user's guesses to the three random numbers and display a message that includes the user's guess, the randomly determined three digits, and the amount of money the user has won. I need to make certain that this application accommodates repeating digits. For example, if a user guesses 1, 2, and 3, and the randomly generated digits are 1, 1, and 1, do not give the user credit for three correct guesses-just one. (From this, it stands to reason that if the randomly generated digits include 2 repeated digits, that they also should be counted as-just one.) This is an example of the final output I am hoping to achieve with this program: Guess the 3 numbers I have chosen.Guess 1 right $10Guess 2 right…I am trying to create a application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over. Accumulate the guesses until the user guesses the number. When the user correctly guesses the random number, the program should display the number of guesses they took. "You guessed the number in # guesses", where # is the number of guesses it took. And the programming language i am using is visual basic or vb.net 2019 editionJava Programming Write an application that prompts the user for two integers and then prompts the user to enter an option as follows: 1 to add the two integers, 2 to subtract the second integer from the first, 3 to multiply the integers, and 4 to divide the first integer by the second. Display an error message if the user enters an option other than 1 through 4 or if the user chooses the divide option but enters 0 for the second integer. Otherwise, display the results of the arithmetic. Write your .java file here. Include your flowchart and sample output.(Use a switch statement only).
- (aa*bb*)|(b+)|(bb|aa)* aabb -> True or Falsebbb -> True or Falseaaa -> True or Falseaaaa -> True or Falseaabbabb -> True or FalseWrite a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is as follows:futureValue = investmentAmount * (1 + monthlyInterestRate)years * 12 Use text fields for users to enter the investment amount, years, and interest rate. Display the future amount in a text field when the user clicks the Calculate button, as shown in Figure 9.22b.please can you write a professional comment using the // command for this c++ code thank you #include <iostream> using namespace std; int main(){ int num1= 0, num2 =0, num3 =0; int smallest =0; cout << "please enter three integer number : "; cin >> num1 >> num2 >> num3; smallest = num1; if (num2 < smallest) smallest = num2; if (num3 < smallest) smallest = num3; cout << "The smallest number is : " << smallest << endl; return 0;}