What values will the following code display? int[] ages = { 12, 15, 26, 31, 18, 20 }; var teens = from item in ages where item < 20 select item; foreach (var value in teens) { MessageBox.Show(value); } Question 9 options: a) 12, 15, 18, 20 b) 26, 31 c) 12, 15, 26, 31, 18, 20 d) 12, 15, 18
Q: What is the index of the first item stored in a list box’s Items property?
A: To determine the index of first item in list box’s items property.
Q: After the following code executes, what elements will be members of set3?set1 = set([1, 2, 3,…
A: EXPLANATION: The set() method is used for the purpose of creating the set of the elements that are…
Q: endant Publishing edits multi-volume manuscripts for many authors. For each volume, they want a…
A: #include<iostream>#include<fstream>using namespace std;//Read data from file and returns…
Q: PopulationCreate an application that predicts the approximate size of a population of organisms. The…
A: Prompt the user for Starting number of organisms. Prompt the user for Average daily increase. Prompt…
Q: T F: The Karate School Manager application requires you to write special event handling code that…
A: The Karate School Manager application do not require special event handling code .
Q: Computer Science Javascript populateSelectMenu function The function populateSelectMenu should…
A: Summary: -A statement that is executed if the condition is true. Can be any statement, including…
Q: If a list box’s Sorted property is set to False, how will the numbers 4, 35, 3, 1, and 12 be…
A: The list box’s sorted property: When it is set to True then the items in the list box will appear in…
Q: Private Sub btnDisplay_click(...) Handles btnDisplay.click Dim dt As Date = #12/4/2019#…
A: Dim str As String = dt.ToString("D") -> str after this line becomes "Sunday, 04 December 2019"…
Q: Module main() // Local variables Constant Integer SIZE = 12 Declare String month[SIZE] =…
A: Given: Module main() // Local variables Constant Integer SIZE = 12 Declare String month[SIZE] =…
Q: Car Wash Treatments: chkDetailing chkOutsideWash -MOutside Wash ØDetaing -Vacuum OWax chkVacuum…
A: import java.awt.FlowLayout;import java.awt.GridLayout;import java.awt.event.ActionEvent;import…
Q: e below form will represent the main form from which the user will navigate to the other forms.…
A: using System; using System.Collections.Generic; using System.Data; using System.Configuration;…
Q: Question 20 (1 point) You have a flexbox with child boxes in a row. You want the child boxes to be…
A:
Q: The Financial icer at RGl wants you to develop an application thất will evaluate the company's…
A: RGI Annual asset depreciation App : It uses virtual basic GUI Functions It Contains Button…
Q: 6/49 Lottery Draw Application (Basic Project) I. Create an application that simulates a 6/49 Lottery…
A: Winning = [10,20,40,45,46,49] while(True): print("Welcome to Lotto Draw!") print("1 [Draw]")…
Q: Use select statements to create queries that answer the following questions. Only provide the…
A: Queries: 1) SELECT ItemDescription, Price FROM Flower WHERE ItemDescription LIKE '%Bouquet%' AND…
Q: Please provide proper comments. Define the following code. #include 2 #include 3 4 #define…
A: This is the C language code which is playing some songs and calculating their playing time in…
Q: Write a statement that removes the items from the lstPrices control.
A: “ListBox”cControl has a property called “Items”, which represents the collection of items in the…
Q: The Item class contains a Private variable named _dblCost. The variable is associated with the…
A: The class name is item and the private variable name is _dblCost. The public variable which is used…
Q: The following definition has errors. Locate as many as you can. A) void showValues(int nums) {for…
A: A) void showValues(int nums) {for (int count = 0; count < 8; count++) cout << nums[count];}…
Q: This is for Visual Basic I and is not in a textbook. Create a Windows Form application. Use the…
A: FORM DESIGN: Add the required controls to the form.
Q: Write a statement to print the data members of InventoryTag. End with newline. Ex: if itemID is 314…
A:
Q: Chu Legistice Manage Aee Manage Cutomen Manage Fe Manage Dve Mannge
A: In the given question we need to create a viod method for each button and name them as follow :…
Q: If a list box’s Sorted property is set to True, how will the numbers 4, 35, 3, 1, and 12 be…
A: The list box’s sorted property: When list box’s sorted property is set to True then the items in the…
Q: A concert hall has three seating categories: Orchestra, Main floor, and Balcony.Orchestra seats are…
A: IPO Chart Input Processing Output Tickets sold for Orchestra class 25 * Tickets sold for…
Q: Which C++ statement that multiplies the contents of the first element in the price array by .15 and…
A: Option A cannot be the correct answer because the price array is multiplied by 12 but not 15, but…
Q: When a list box’s Sorted property is set to True, in what order will the following items appear: 35,…
A: If ListBox's Sorted property is set to True then items of list box are sorted alphabetically. If…
Q: Javascript toggleCommentSection function The function toggleCommentSection should exist. The…
A: the program is given below:-
Q: An application uses a structure named Employee. Which of the following statements declares a…
A: Dim workers(4) As Employee declares a five element array of Employee structure variables. Dim…
Q: Complete the following statement, which should calculate the sum of the values stored in a numeric…
A: Aggregate operators in LINQ LINQ, known as Language Integrated Query used in Visual Basic and C#…
Q: A property management company manages individual properties they will build to rent, and charges…
A: Given: A property management company manages individual properties they will build to rent, and…
Q: Design an application (submit pseudocode) that declares an array of 12 BaseBallGame objects. Prompt…
A: The answer is given below.
Q: struct courseType { string name; struct nameType { string first; string last; }; struct studentType…
A: Student.name.last=”Anderson”; Valid classList[1].name=student; Invalid student.name=…
Q: When a list box’s Sorted property is set to True, in what order will the following items appear:…
A: Sorting: Sorting is an essential operation in computer programming to arrange data in the desired…
Q: Which event occurs when the user selects a different item in a list box? a. SelectionChanged b.…
A: List box event: When a statement is selected in a list box that time “SelectedValueChanged” event…
Q: Course information are created using a class 'Course, the class contains: • Course code • Course…
A: Since you have not mentioned the language so i am giving answer in c++
Q: Use the declaration below to answer the next set of questions. struct DateTag{ int nMonth; int nDay;…
A: Here in the given code snippet, we have different structs which are also written inside each other…
Q: The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500,…
A: If clause Conditional sentences are also known as conditional clauses or if clauses. They are used…
Q: What is the value of a checkbox's Checked attribute if it is not selected?
A: Introduction: When a checkbox is marked or checked, it shows that the value has been picked by the…
Q: Instructions Timed Test This test has a time limit of 30 minutes.This test will save and subr…
A: In computer science, a loop is a programming structure that repeats a sequence of instructions until…
Q: If the user enters the number 4 in response to the “How many rows?" prompt, the program should…
A: Introduction of the Program: The C++ Program prompts a message that how many rows? and then the user…
Q: Q2\ Design a form contains a sorted list alphabetically such that the user can add the item from…
A: The solution code for the above problem has been provided from Step 2 onwards, which is divided into…
Q: computer graphics topic A particular text index value is chosen with the function Choices:…
A: Given, Choices: setTextIndex() settextindex(ti) SetTextIndex(ti) setTextIndex(ti) We have to…
Q: 8. Display all orders with their calculated total amount. For example, an order purchased 1 iPhone…
A: Basic select from where class is used in the sql query written below. The output is sorted based on…
Q: Gamex, an online game website launches a game for kids where the kids have to pick up balls from a…
A: Below i have drawn:
Q: Declare a MyStruct variable that initializes the first field to zero
A: Declaring a variable: A structure variable names a type and specifies a sequence of variable values…
Q: { int row = 5, column ; while ( row -- > 0 ) { column = 4 ; if ( row % 2 == 0 ) cout 0) I" * " cout…
A: output along with an explanation is given below
Q: strng ownerliane; string breed; num ownerId; num age; num weight; num weeklyFee; cout « "Please…
A: Correct the given program as follows: Use int data type for the variables that will store numeric…
Q: what is Group box?
A: What is Group Box? A Group Box is also called a Frame. A Group Box is a special type of box which…
What values will the following code display?
int[] ages = { 12, 15, 26, 31, 18, 20 };
var teens = from item in ages
where item < 20
select item;
foreach (var value in teens)
{
MessageBox.Show(value);
}
Question 9 options:
|
|||
|
|||
|
|||
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- The above screen is used to browse the products table it uses the ProductDAO.java file, it calls the getProductByCriteria() function which should accept a parameter, this parameter should be the criteria that would be built from the two combo boxes and the text box, and queries the products table.The getProductByCriteria() function should return a list of Product objects that matches the criteria specified. Modify the function so that it accepts a string paramater consisting of the fields from the combo boxes and a price number from the text box separated by commas and use this string to modify the query in the function to return the desired result set. public List<Product> getProductByCriteria() //MAKE MODIFICATIONS TO THIS FUNCTION SO IT CAN TAKE PARAMETER(S) { if (openConnection()) { try{ List<Product> items = new ArrayList <> (); Product temp = null; String…in visual c# add customer id from customer table to booking table which has a customer id column. they are primary key and foriegn key and are linked in realtionship table in access file. when button is clicked insert first name into booking table in first name column. This should automaically copy customer id to booking table in customer id column without codingThe CompanyDataSet contains a table named Sales and a field named Income. Which of the following loops will accumulate the values in the Income field? a. For Each row As CompanyDataSet.Sales.Row In CompanyDataSet.Sales.Rows Sales.Row += row.Income Next row b. For Each row As CompanyDataSet.Sales.Row In CompanyDataSet.Sales.Rows dblTotal += row.Income Next row c. For Each row As CompanyDataSet.Sales.Row In CompanyDataSet.Rows dblTotal += row.Income Next row d. For Each row As CompanyDataSet.Sales In CompanyDataSet.Sales.Rows dblTotal += row.Income Next row
- 3.Rose Theater Company For this assignment you will modify the Rose Theater Company assignment created in chapter 2. Rose Theater company sells tickets to their productions. There are three seating options for purchase at Rose's theater; Orchestra seats, Center Stage seats, and Outer Stage seats. Orchestra seats cost $75 each, Center Stage seats cost $50 each, and Outer Stage seats cost $25 each. The theater company also gives a discount of 5% on tickets to the local theater group members. The user will enter the number of Orchestra, Center State, and/or Outer stage seats the customer wants to purchase along with whether the customer is a member of the local theater group. The program will calculate and display the income from each type of seat sale along with the discount, and total sale. Requirements Must include use of named constants Must include meaningful variable names Must include a main function with a call to the main function. Must include at least one value returning…Complete the following statement, which should calculate the sum of the values stored in a numeric field named JanSales:Dim intTotal As Integer = Aggregate sales In SalesDataSet.tblSales Select___________ Into Sum()Write a selection statement that will display 'CS Honors Eligible' on screen if a student's GPA is 3.5 or greater and they have completed over 60 hours.
- . The O’Neill High School Performing Arts Center auditorium contains 20 rows (numbered 1through 20) with 40 seats each (numbered 1 through 40). Write an application that allows auser to continuously enter a row and seat request until a sentinel value is entered. If the rowor seat number is too high, issue an error message. Otherwise, determine whether the seat hasalready been reserved. If so, display an error message; if not, then charge the user $7.50 for aticket and display a running total of the user’s purchase. When the user enters a sentinel,display the number of seats taken and the number still available in the auditorium.To retrieve a definition, the user simply clicks on a word in the list box. The definition is retrieved using the Item method and is displayed in the text box. give code with outputBuild a list of contacts for New Jersey manufacturers as follows: ContactFirstName, ContactLastName, Phone. HINT: To do this you will need to split the contact name into two columns. You will need to embed string functions within string functions. It may be helpful to use Substring and Charindex. For last name, you can use a literal of 20 characters as the length to ensure you pick up all the characters to the end of the field.)
- A Costume shop requests a Computer application that advertizes Costume rentals. This week's Costume rental specials are as follows : Table Costume Price per week Renaissance Fair $40 Stormtrooper $49 Batman / Batgirl $36 Pirate $29 Write an application that allows the user to select any of the five costume rental specials. When the user selects a costume, the corresponding cost and a picture of the costume should be displayed. Clear each prior price and picture when the user selects a different costume. After selecting a costume, the user should be able to book the costume rental and then CLOSE the window. Show screenshot of workA Costume shop requests a Computer application that advertizes Costume rentals. This week's Costume rental specials are as follows : Table Costume Price per week Renaissance Fair $40 Stormtrooper $49 Batman / Batgirl $36 Pirate $29 Write an application that allows the user to select any of the five costume rental specials. When the user selects a costume, the corresponding cost and a picture of the costume should be displayed. Clear each prior price and picture when the user selects a different costume. After selecting a costume, the user should be able to book the costume rental and then CLOSE the window. Visual BAsicsA Costume shop requests a Computer application that advertizes Costume rentals. This week's Costume rental specials are as follows : Table Costume Price per week Renaissance Fair $40 Stormtrooper $49 Batman / Batgirl $36 Pirate $29 Write an application that allows the user to select any of the five costume rental specials. When the user selects a costume, the corresponding cost and a picture of the costume should be displayed. Clear each prior price and picture when the user selects a different costume. After selecting a costume, the user should be able to book the costume rental and then CLOSE the window.