If intPRICE is a named constant, which of the following statements is incorrect? a. intTotal = intPRICE * intQuantity b. intPRICE = intPRICE * .9c. lblPrice.Text = intPRICE.ToString("C2") d. none of the above
Q: Write a statement that displays the following numeric variables in amessage box. sum
A: Statement for displaying the “sum” in a message box: The variable “sum” is an integer variable. The…
Q: Write a statement that displays each of the following numeric variables in a message box. a.…
A: The “MessageBox.Show ()” method accepts only string parameters. If the user directly passes variable…
Q: What will the following code display in the lblSum control?Dim intSum As IntegerDim intY As…
A: The label, “lblSum” will display a value “12”. Hence the correct answer is option (c).
Q: Write a temperature conversion application that converts from Fahrenheit to Celsius. The Fahrenheit…
A: Convert the celcius to fahrenheit using the formula is Celcius = (5/9)× ( Fahrenheit - 32) Using…
Q: Write a statenent that increments (adds 1 to) one and only one of these five…
A: if(speed<0) { ++reversedrivers; } else if(speed>0 || speed<1) { ++parkedDrivers; } else…
Q: Visual C# Blank App (Universal Windows) Create a program that prompts for a numeric value and then…
A: Input :- Form1.cs //File Name using System;using System.Collections.Generic;using…
Q: I am trying to create a application that generates a random number in the range of 1 through 100 and…
A: Actually, the code has given below:
Q: If the strAddress variable contains the string “15 Palm Ave.”, what will the…
A: “IndexOf” method: In Visual Basic, the IndexOf method is used to check if a string contains a…
Q: If the txtTax.Text property contains 6.89, what number will the Decimal. TryParse(txtTax.Text,…
A: The value stored in the variable decTax would be True.
Q: Complete the AscendingAndDescending application so that it asks a user to enter three integers.…
A: import java.util.Scanner; public class AscendingAndDescending { public static void main(String[]…
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: Name Formatter Create an application that lets the user enter the following pieces of data: • The…
A: Design the Form: Place a Label, Textbox and button controls on the form. And change its name and…
Q: Create an application that calculates mph or (Miles Per Hour). There should be 2 textbe and 2 labels…
A: Actually, program is an executable software that runs on a computer.
Q: Write a statement that displays the following numeric variables in amessage box. width
A: a statement that displays the following numeric variables width in a message box.
Q: create an application that will ask the user to enter password set in the program for only three…
A: print('Enter username and password to continue wth exam')count=0while count < 3: username =…
Q: Write a statement that displays the following numeric variables in amessage box. highScore
A: Statement for displaying the “highScore” in a message box: The variable “highScore” is an integer…
Q: Only button OK is displayed Both button OK and button Cancel are displayed, button OK is displayed…
A: Two buttons are added to the frame.
Q: Write a statement that uses the IndexOf method to determine whether the strAddress variable contains…
A: A method “IndexOf()” is used to return the index of the substring’s first occurrence. The first…
Q: Write a C# program (Windows Forms application) named CheckCredit that asks the user to enter a…
A: The below program is solved using C# language below:
Q: The date June 10, 1960, is special because when it is written in the following format, the month…
A: Program: #input month from the usermonth=int(input("Enter a month (in numeric form): "))#input day…
Q: This question requires that you evaluate the underlined text to determine if it is correct. You are…
A: Required: This question requires that you evaluate the underlined text to determine if it is…
Q: Here is the question: Write an application that prompts a user for the number of years the user has…
A: GIVEN: Calculate the amount of money the user will have at retirement by c++ program. Get the inputs…
Q: Chapter 4: Making Decis ions I. Mass and VWeight (Nr 2, Page 282) Scientists measure an object's…
A: FORM DESIGN:
Q: There are three seating categories at a high school athletic stadium. For a baseball game, Class A…
A: Module Seating_Plan Sub Main() Dim classA_tick As Integer Dim classB_tick As Integer Dim classC_tick…
Q: Create a program that prompts for a numeric value and then calculate the square root of this number.…
A: Introduction to C# Program C# (pronounced as C sharp) is a general-purpose, object-oriented…
Q: final question Assuming you have a global counter variable (of type integer) that is initially equal…
A: In the a) option: There is no increment in the counter variable. In the b) and d) option: The 'int…
Q: What value will the wholePieces variable contain after the following code executes?a. double…
A: Explanation of the above-given program code: Declaring the double type variable, totalPieces with…
Q: what will be displayed when you run the code ? a=0;while a<10; value = %2.2f',a) a=a+3;…
A: The while loop evaluates an expression, and repeats the execution of a group of statements in a loop…
Q: Travel Expenses Create an application that calculates and displays the total travel expenses for a…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: The user has asked you to create them an application that prompts them for two numbers and presents…
A: Given: To develop a C# program based on the following criteria in the above question .
Q: Write a statement that assigns operationResult with the division of number1 by number2. Ex: If…
A: Javascript code: <script>//test case 1var number1 = 6; var number2 = 2; var operationResult =…
Q: Write a statement that displays the dblRate variable’s value in the lblRate.Text property. The value…
A: Statement to display the “dblRate” variable’s value in the “lblRate.Text” property: lblRate.Text =…
Q: If the decPay variable contains the number 1200.76, which of the following statements displays the…
A: Below are some standard numeric format specifiers. 1. "C" : It is a format specifier for currency…
Q: O 0{ 48% 4G* VodaCom-SA ll 2:3 |_DO_SU1 CMPG 122 User Interface Programming I_Do Chapter 2:…
A: Hey, since multiple questions posted, we will answer first question according to our policy. If you…
Q: Scientists measure an object’s mass in kilograms and its weight in Newtons. If you know the amount…
A: Program approach: To create this mass weight application we will use java. We will use java swing…
Q: There are three seating categories at a high school athletic stadium. For a baseball game, Class A…
A: Since no programming language is mentioned, I am using python. Code: total=0try:…
Q: The user has asked you to create them an application that prompts them for two numbers and presents…
A: Algorithm to find mathematical operations and greater number between the input Input two number…
Q: Write a statement that assigns the number 9.99 to the decPrice variable.
A: Assignment Statement: Assignment statement is the type of instruction that assigns a value to the…
Q: If the user clicks the Cancel button in a message box, the MessageBox.Show method returns the…
A: Return Value of MessageBox: MessageBox.Show method returns a number in the response of button click.…
Q: uonsəno Which of the following methods displays a dialog box with an OK button? Alert() O a. Ob.…
A: Option b: write() method is used to write code to the document so this option is wrong. Option c:…
Q: There are 3 parts to each question. Please give me the code for all the 3 parts . Any kind of help…
A: Programming language is missing in the question. So we will answer this program in Python. If you…
Q: If the txtTax.Text property contains $57.25, what number will the Decimal. TryParse(txtTax.Text,…
A: TryParse method TryParse method is used for converting text to the numeric data type. If the text…
Q: 7. How would you change the text of a label to the text contained by an integer named num;…
A: The above question is solved in step 2 :-
Q: Write a statement that displays the decPrice variable’s value in the lblPrice.Text property. The…
A: We need to format the string variable. Format a numeric value with the "C2" format string to…
Q: Write a statement that displays the following numeric variables in amessage box. grandTotal
A: Statement for displaying the given numeric variable in a message box: The variable “grandTotal” is…
Q: Assume pointsTextBox is the name of a TextBox control and points is the name of an int variable.…
A: TryParse method in C# programming language: The method, TryParse takes a string object as input and…
Q: Write an application that handles a student report card. The application shall save the marks of…
A: Given: We have to write an program that handles a student report card. You have not mentioned…
Q: Question:1 Q1. Write an application that displays in the console window a box, an oval, an arrow and…
A: The Answer is
Q: If you execute the following code, what will it display if the user enters 5? 15? 30? −1? int…
A: GIVEN: If you execute the following code, what will it display if the user enters 5? 15? 30? −1? int…
Q: it soon i will rate Create a Console application named Debug5DA Save the application in the…
A: FirstInitialLastnameCSUnit5D folder. // Uses DisplayAddress method three times using static…
If intPRICE is a named constant, which of the following statements is incorrect?
a. intTotal = intPRICE * intQuantity
b. intPRICE = intPRICE * .9
c. lblPrice.Text = intPRICE.ToString("C2")
d. none of the above
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 > wordMediumURGENT NEED THUMBS DOWN COP ? 2: Take the username and password from a user and check the validity of the password using the following rules: 1. Password must contain at least 2 digits, at least one uppercase letter, at least one lowercase letter, and at least one of the special characters (*,_,%,$,#,@) in it. If one or more of these are missing, show which ones are missing. 2. The password must not contain the username in it. If it does, the password will be invalid. 3. The password must have a length of 8 or more. Sample Input 1: Username: IzukuMidoriya Password: izukuMidoriya24# Output1: Invalid Password: Password cannot contain username Sample Input 2: Username: IzukuMidoriya Password: Iamhere@12 Output2: Valid password Sample Input 3: Username: IzukuMidoriya Password: Ia4%Lp Output3: Invalid Password: Password too short Sample Input 4: Username: IzukuMidoriya Password: izuku@Midoriya24# Output4: Valid Password Sample Input 5: Username: IzukuMidoriya Password:…To evaluate a int data type using switch, the evaluated variable needs to be enclosed in single quotation marks. True False
- State true or false ; The result of a calculation made by an application should be stored in a variable.Professor Zak allows students to drop the four lowest scores on the ten 100-point quizzes she gives during the semester. Design an application that accepts a student name and 10 quiz scores. Output the student's name and 10 quiz scores. Output the student's name and total points for the student's six highest-scoring quizzes. Modify the application so that the student's mean and median scores on the six best quizzes are displayed.The outcome of an application's computation should be saved in a variable. True or False?
- 3. Solar Panel InstallationThe Megawatt solar panel company installs solar panels on home rooftops. The base installation charge of $2,000 includes two panels. The charge for each additional panel is $300. The normal waiting time for installation is two weeks, but customers can pay an express charge of 5% of the total cost to reduce this time. Create an application that collects the required information from the user and calculates the charges for the installation.The user should input the following information: first name, last name, phone, number of panels, deposit amount, and a check box for the express installation option. When the user clicks a button to view the charges, display a group box containing the following information: base installation charge, cost of installing additional panels, total installation cost, deposit amount, and balance due.Error checking should include the following criteria:• The name and phone fields cannot be blank• The number of panels must be an…6. Travel ExpensesCreate an application that calculates and displays the total travel expenses for a business trip. The user must provide the following information:• Number of days on the trip• Amount of airfare, if any• Amount paid for meals, if any• Amount of car rental fees, if any• Number of miles driven, if a private vehicle was used• Amount of parking fees, if any• Amount of taxi charges, if any• Conference or seminar registration fees, if any• Lodging charges, per nightM06_GADD4658_08_SE_C06.indd 425 05/01/19 2:33 PM426 Chapter 6 Procedures and FunctionsThe company reimburses travel expenses according to the following policy:• $37 per day for meals• Parking fees, up to $10.00 per day• Taxi charges up to $20.00 per day• Lodging charges up to $95.00 per day• If a private vehicle is used, $0.27 per mile drivenThe application should calculate and display the following:• Total expenses incurred by the business person• The total allowable expenses for the trip• The excess that must be…5. A store is having a (Buy One, Get One Half Off) sale. The store manager wants an application that allows the salesclerk to enter the prices of two items. The half off should always be applied to the item that has the lowest price. The application should calculate and display the total amount the customer owes as well as the amount he or she saved. For example, if the two items cost $24.99 and $10.00, the half off is applied to the $10.00 item. The total owed is $29.99 and the savings is $5.00. Display the calculated amounts in label controls, and display them with a dollar sign and two decimal places. Finally, professionalize your application's interface.