If intAge <= 5 Then intCost ElseIf intAge <= 12 Then intCost = 5 ElseIf intAge <= 55 Then intCost = 10 %3D Else intCost End If
Q: You can modify the tab order by changing a control’s____________________property.
A: This fill in the blank question is related to visual basics.
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: The strName variable contains the string “Jane H. Doe”. Write a statement that uses the Substring…
A: The substr() refers to a Substring method which is used to assign the substring to the string…
Q: Write a Sub procedure that displays a series of asterisks (*) to the control txtOut. Assume the Sub…
A: Since nothing is mentioned, I am assuming txtOut is the name of the text box. Code: Public Class…
Q: The strDue variable contains the string “$****75”. Which of the following statements removes the…
A: TrimStart(): It is a method that is used to remove the occurrences of set of characters that is…
Q: You can modify the tab order by changing a control’s _______ property.
A: GIVEN: You can modify the tab order by changing a control’s _______ property.
Q: The strItem variable contains the string “XMredBQ”. Write a statement that uses the Substring method…
A: Substring: This function is used to obtain a part of a specified string. The user has to specify…
Q: An application declares a structural variable named songs using the Music structure. Which of the…
A: Introduction: Here we are required to tell the correct answer for the MCQ asked above.
Q: Write a statement that assigns the InputBox function’s return value to the strItem variable. The…
A: InputBox() function: The “InputBox()” function is used to get a data from the user; the basic syntax…
Q: Bright Brains Private Elementary School has three classrooms in each of seven grades, kindergarten…
A:
Q: A movie theater charges $8 per ticket for children ages 2 through 12. The age information is stored…
A: The If clause is basically a decision statement and the code contained inside it will be carried out…
Q: What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable…
A: Select...Case structure: The Select Case is used to specify the multiple alternative choices in a…
Q: Write a statement that first removes any leading and/or trailing spaces from the strDept variable…
A: Answer: The statement that removing the spaces form the “strDept” variable and changes the content…
Q: What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable…
A: Select...Case structure: The “Select Case” is used to specify the multiple alternative choices in…
Q: When an object is falling because of gravity, the following formula can be used to determine the…
A: To perform the given task, an application in C++ language will be developed by following the below…
Q: If the intTotalScore and intTests variables contain the numbers 0 and 2,respectively, the statement…
A: By given problem, two variables, intTotalScore, and intTests have values 0 and 2 respectively. If we…
Q: What will the code in Figure 4-53 assign to the intCost variable when the intAgevariable contains…
A: Assign a value 33 to the variable named intAge and find that what value is assigned to the variable…
Q: Which property specifies the number of characters that a text box will accept? a. Length b.…
A: The “MaxLength” property specifies the number of characters that a text box will accept. Hence the…
Q: What will the code in Figure 4-55 assign to the strStatus variable when the intLevel variable…
A: Condition in the above given program code: If the value of intLevel is 1 or 2, then assigning…
Q: The dblBonus variable contains the number 1234.75. Write the assignment statement to display the…
A: Explanation: The Currency specifier (“C”) is used display the value with a dollar sign. The…
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: 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: An employee’s current pay rate appears in the txtCurrentRate control. Write an assignment statement…
A: Given: An employee’s current pay rate appears in the “txtCurrentRate” control. To Find: An…
Q: Q3: Write a VB.NET code inside Button1_Click. When pressed by the user, it displays a message box as…
A: Here we write simple code to show msgbox.…
Q: The strTotal variable contains the string “***75.67”. Write a statement that uses the TrimStart…
A: “TrimStart ()” method: The “TrimStart ()” method is used to remove characters from only the…
Q: create flowchart that will arrange the value of A, b and c assending order where a gets the lowest…
A: - The question is to create a flowchart for the given problem of printing the provided numbers in…
Q: The application displays a shipping charge that is based on the total price entered by the user, as…
A: It is a console based program.The above problem can be solved by using if else statements and also…
Q: Create a statement that displays the value of the letterGrade char variable in a message box.
A: Here, I have to provide a statement to the above question.
Q: flowchart that will accept 3 integers and display the lowest number
A: ALGORITHM THAT WILL ACCEPT THREE INTEGERS AND DISPLAY THE LOWEST NUMBER - FOLLOWING ARE THE STEPS -…
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: Q.6/ Design a form with a text box. Use select statement so that when user enters g, b, r and y then…
A: According to the information given:- We have to create a form with a text box and take user input…
Q: What value will be displayed in the message box when the following code segment is executed? double…
A:
Q: Assume certain facts. Points is the name of an int variable, and TextBox is the name of a TextBox…
A: Given that: The topic is about Points is the name of an int variable, and Text Box is the name of a…
Q: Please create using C# A restaurant offers a $10 discount if the total amount is at least $40. If…
A: Add a label and change Text to Discount Coupon and Name to lblDiscount. Add a CheckBox in front of…
Q: Open the Proper Case Solution.sln file contained in the VB2017\Chap07\Proper Case Solution folder.…
A: The, code has given below:
Q: If the intTotalScore and intTests variables contain the numbers 200 and 0,respectively, the…
A: ANS: - The correct option is (d). result in a run time error.
Q: Provided below is a select case statement. Which of the following if statements can be used to…
A: 1) Option A is correct - Because we can end, if else condition after else clause if there else…
Q: If the strMsg variable contains the string “Her birthday is Friday!”, which of the following assigns…
A: The statement “intNum = strMsg.IndexOf("F")” assigns the number 16 to the variable “intNum”. Hence…
Q: What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains…
A: The value in the variable “intCost” after the execution of the given code is as follows, The given…
Q: The __________ contains a numeric value, which indicates the control’s position in the tab order. a.…
A: TabIndex property includes a numeric value which indicates the position of control in tab order.…
Q: Write an assignment statement that increments the intTotal variable by the contents of the…
A: The assignment statement that increments the intTotal variable by the contents of the intQuantity…
Q: Q1/Answer the following question (A) What is the difference between checkbox and option button?
A: Checkbox: Checkbox is represented as square and in checkbox you can select more than one option. It…
Q: The value a variable created with the "const" keyword is a. Fixed and cannot be changed O b. Can be…
A: Constant variables are the fixed data value variables. The value of the variable is set at the time…
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: What will the code in Figure 4-53 assign to the intCost variable when the intAge variable contains…
A: As given in the question the variable intAge variable has value assigned to it as 12. So after the…
Q: Write a statement that assigns the number of characters in the strZip variable to the intNum…
A: The statement “intNum = strZip.Length” can be used to assign the number of characters in the…
Q: If the user enters the text A34 in the txtNum control, what will the Integer.TryParse(txtNum.Text,…
A: Statement assigning to the intNum variable TryParse method helps to identify a string value which…
What will the code in Figure 4-53 assign to the intCost variable when the intAge
variable contains the number 65?
a. 0
b. 5
c. 8
d. 10
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Cell Phone Packages use Java Swing(GUI)Cell Solutions, a cell phone provider, sells the following packages:300 minutes per month: $45.00 per month800 minutes per month: $65.00 per month1500 minutes per month: $99.00 per monthThe provider sells the following phones (a 6 percent sales tax applies to the sale of a phone):Model 100: $29.95Model 110: $49.95Model 200: $99.95Customers may also select the following options:Voice mail: $5.00 per monthText messaging: $10.00 per monthWrite an application that displays a menu system. The menu system should allow the user to select one package, one phone, and any of the options desired. As the user selects items from the menu, the application should show the prices of the items selected.void removeStudent(){System.out.print("\n Enter StudentID to remove: ");long id =sc.nextLong();int pos = searchStudentID(id);if(pos == -1)System.out.println("\n ERROR: No student found having same ID: " + id);elsecourses.remove(pos);} int searchStudentID(long studentID){for(int c = 0; c < students.size(); c++)if(studentID == students.get(c).getId())return c;return -1;} The code is supposed to prompt the user to enter a studentID and if it is in the records then it will be removed, but instead it just prompts me to enter and when i enter the ID, it does not remove the ID (I display the data again after I supposedly removed it but it is still there) and just returns back to the menu. What can I do to correct it?void removeStudent(){System.out.print("\n Enter StudentID to remove: ");long id =sc.nextLong();int pos = searchStudentID(id);if(pos == -1)System.out.println("\n ERROR: No student found having same ID: " + id);elsecourses.remove(pos);} int searchStudentID(long studentID){for(int c = 0; c < students.size(); c++)if(studentID == students.get(c).getId())return c;return -1;} The code is supposed to prompt the user to enter a studentID and if it is in the records then it will be removed, but instead it just prompts me to enter and when i enter the ID, it just exits and goes back to the menu. is there something wrong with my code?
- Java Programming Joyce Farrell 14-10: Create an application for Paula’s Portraits, a photography studio. The application allows users to compute the price of a photography session. Paula’s base price is $40 for an in-studio photo session with one person. The in-studio fee is $75 for a session with two or more subjects, and $95 for a session with a pet. A $90 fee is added to take photos on location instead of in the studio. Include a set of mutually exclusive check boxes to select the portrait subject and another set for the session location. Include labels as appropriate to explain the application’s functionality. An example of the program is shown below:Computer Science Build an application which checks eligibility to enter a party venue. Prompts the user for their age and apply the following rules: Younger than 18 is denied entry Between 18 and 35 is allowed entry 35 and older is too old. Extend this application to prompt whether the person female or male. Females are granted free entry and males pay R10 per person in their group. After prompting for number of guests, display the price to be paid, if any. Use JOptionPaneGive Authentic And Relevant Answer. Write a detail use case for “Search a Cab” function. For searching a cab, the passenger would enter his/her source and destination information and the application would list down all the available cabs in a 1km radius. If application unable to find cab within 1km radius passenger can increase the radius up to 3 km. The passenger would send pickup request to the driver and the driver would come to pick the passenger from the source address. ‘Get a Cab’ is a Smartphone application. It will search cabs for the passenger, provide them with security by reminding them about their luggage and it will also allow the user to inform the police with the help of a one-click button. This application facilitates the guardians to trace the location of their loved ones. It also lets passengers locate a driver at any instance to overcome all time related issues. If the passenger wants to avail the services of the same driver in future, he/she can add the driver to…
- //Global Constant Global Constant TECH_FEE = 0.05 Module main () //Local Variable Declare Integer studentID, ClassTitles , hoursWorked, numofClass, techFee, totalBill classCost=$150 //Get Student ID Call getStudentID () //Get Class Titles Call getCLassTitles () End Module Module getStudentID () Display "Please enter your Student ID:" Input studentID End Module Module getClassTitles () //Get number of class student wants to add and calculate the total bill Display "One class will be free if you add three classes." Display "How many classes do you want to take? (Limit 3)" Input numofClass if numofClass > 3 then Display "Error: Maximum of 3 Class Allowed" end if while numofClass <= 3 if numofClass == 1 then Display "Please enter the Class Title" Input class1 Set classCost = 150 * numofClass Set techFee = classCost * TECH_FEE Set totalBill = classCost +…In the btnCalc_Click procedure, change the For…Next statement that controls the years to a Do…Loop statement. Option Explicit OnOption Strict OnOption Infer Off Public Class frmMainPrivate Sub btnCalc_Click(sender As Object, e As EventArgs) Handles btnCalc.Click Dim dblDeposit As DoubleDim dblBalance As Double Double.TryParse(txtDeposit.Text, dblDeposit) txtBalance.Text = "Rate" & ControlChars.Tab &"Year" & ControlChars.Tab & "Balance" &ControlChars.NewLine End Sub Private Sub txtDeposit_Enter(sender As Object, e As EventArgs) Handles txtDeposit.EntertxtDeposit.SelectAll()End Sub Private Sub txtDeposit_TextChanged(sender As Object, e As EventArgs) Handles txtDeposit.TextChangedtxtBalance.Text = String.EmptyEnd Sub Private Sub btnExit_Click(sender As Object, e As EventArgs) Handles btnExit.ClickMe.Close()End Sub Private Sub txtDeposit_KeyPress(sender As Object, e As KeyPressEventArgs) Handles txtDeposit.KeyPress' Allows the text box to accept only numbers, the…True or not? A control's Modifiers attribute is by default set to public.
- Management & Science University needs you to develop a Java application for MSU Souvenir shop to calculate the total bill of the purchased item and store the information as sales report to be reviewed by the management. MSU student and staff will get 5% discount per each item. The details are as follow: There is one buttonGroup to represent the membership. Display the result in a JOptionPane that appears on the screen only after the cashier clicks the JButton named Calculate. Right after the user clicks the JButton, the total bill need to be stored in a sales.txt. Save the java file as Billing.javaDouble any element's value that is less than controlValue. Ex: If controlValue = 10, then dataPoints = {2, 12, 9, 20} becomes {4, 12, 18, 20}. #include <iostream>using namespace std; int main() { const int NUM_POINTS = 4; int dataPoints[NUM_POINTS]; int controlValue; int i; cin >> controlValue; for (i = 0; i < NUM_POINTS; ++i) { cin >> dataPoints[i]; } /* Your solution goes here */ for (i = 0; i < NUM_POINTS; ++i) { cout << dataPoints[i] << " " ; } cout << endl; return 0;}Please do it in c++ as soon as possible.Little Johnny Bubbles appreciates going through hours before his PC playing computer games. His #1 game is Bubble Strike, speedy air pocket shooting internet game for two players. Each game is set in one of the N maps, each having diverse landscape setup. First period of each game settles on which map the game will be played. The game framework arbitrarily chooses three guides and shows them to the players. Every player should pick one of those three guides to be disposed of. The game framework then, at that point, arbitrarily chooses one of the guides that were not picked by any of the players and starts the game. Johnny is profoundly energetic with regards to the game and needs to invest some energy concentrating on maps, in this manner expanding opportunities to dominate matches played on those guides. Nonetheless, he likewise needs to get his work done, so he doesn't have the opportunity to concentrate on every one of the guides. That is the…