The Item class contains a Private variable named _dblCost. The variable is associated with the Public Cost property. An application instantiates an Item object and assigns it to a variable named phone. Which of the following can be used by the application to assign the number 150.65 to the _dblCost variable?a. phone.Cost = 150.65b. item.Cost = 150.65c. phone._dblCost = 150.65d. item._dblCost = 150.65
Q: Write a statement that declares a class-level variable named strName.
A: Statement that declares a class-level variable Class-level variables are normally declared inside a…
Q: Create the Chopkins Toys application as shown in Figure 3-37. ! Chopkins Toys 12 pack: 5 pack: 2…
A: Steps to create the Visual Basic Project Open the Microsoft Visual Basic dot net application. Click…
Q: The Purchase class contains a ReadOnly property named Tax. The property is associated with the…
A: Explanation: From the given details, the Tax property is a ReadOnly property. Tax is associated…
Q: The Financial officer at RGIl wants you to develop an application company's asset's annual…
A: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _Partial Class frmMain…
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: Specifications: Lions, Tigers, and Bears Pet Clinic needs an application that displays basic…
A: Create a windows application in C# using visual studio. Open visual studio and create a new project…
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: Note: Comments mentioned in the code for understandability. In the implementation: If skill level…
Q: An application instantiates an Animal object and assigns it to the cat variable. Which of the…
A: Calling function: A function procedure is called with the help of a procedure name, followed by the…
Q: You are required to create a console application that will determine the value of the customer coin…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
Q: In Chapter 2, you created an interactive application named MarshallsRevenue, and in Chapter 3 you…
A: Here is the program :
Q: The Item class contains a Public method named GetDiscount. The method is a function. An application…
A: In Visual Basic, classes and objects are used to represent things in an environment. The syntax for…
Q: Exercise - Structs, Instances, and d Default Values une səni Imagine you are creating an app that…
A: Answer: Here is the swift code as per your requirement Raw code: struct GPS{ var latitude:…
Q: The Inventory class contains a Private variable named strId. The variable is associated with the…
A: Explanation: Here, the Inventory class contains a private variable that is “strId”. But one can…
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: Paint Job Estimator A painting company has determined that for every 115 square feet of wall space,…
A: Steps to create a Form: Create a Form and set the “Text” property to “Paint Job Estimator”. Create…
Q: Vindows application the user to student ation, display them in a message box when the button is…
A: pls use below code but pls add proper location I have added normal numbers. using System;using…
Q: Create an application associated with chapter 3 - This app should contain the following: A Student…
A: Given: Create an application associated with chapter 3 - This app should contain the following: A…
Q: we have a book object but we do not give it a "subtitle" property, the following code will return…
A: Please find the answer below :
Q: The Financial officer at RGI wants you to develop an application that will evaluate the company’s…
A: Public Class RGI Private Sub Display_Click(sender As Object, e As EventArgs) Handles…
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: Actually, java is a object oriented programming language. The given information: Skill Level Hourly…
Q: Please refer to General Assignment requirements document for the additional requirements Please note…
A: Given: Please refer to General Assignment requirements document for the additional…
Q: QUESTION TWo (30 MARKS) The Financial officer at RGI wants you to develop an application that will…
A: Answer is given below .
Q: Create a Team class that includes the following data fields: • name (String) nbOfPlayers (int)…
A: ANSWER:
Q: Create an application named TestSoccerPlayer that instantiates and displays a SoccerPlayer object.…
A: using System; class SoccerPlayer{ //declaring instance variables string Name; int…
Q: Create a class named Eggs. It’s main () method holds an integer variable named numberOfEggs to which…
A: Algorithm: 1. Start. 2. Read number of eggs as numberOfEggs. 3. Call method to calculate and print…
Q: // Question 4: // 20 Points // Declare an integer variable named "variableQ4" with an initial value…
A: Answer - Given method - private void btnQ4_Click(object sender, EventArgs e){ } Here from the name…
Q: A store is having a (Buy One, Get One Half Off) sale. The store manager wants an application that…
A: Code : Public Class frmMainPrivate Sub btnCalculate_Click(sender As Object, e As EventArgs) Handles…
Q: A variable in the class is known as the ____________. self default constant Not in the option
A: Answer :
Q: 6 Cell Phone Packages Cell Solutions, a cell phone provider, sells the following packages: 300…
A: #include <iostream> using namespace std; // To store the total price to be paid per…
Q: Write a tkinter application that asks the user to create their own pizza. First, they should enter…
A: 1.In the following code you must select one option in the menu,if not you will get a warning…
Q: Please insert code line in the "..." above the "Main Code Section" which is at the bottom. class…
A: Coded using Python 3.
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: Write an application that allows the user to choose insurance options in JCheckBoxes. Use a…
A: The following points can be used for creating the mentioned application: Import the packages-…
Q: Create an application named SalesTransactiobDemo that declares several SalesTransaction objects and…
A: The complete code is given below with the output.
Q: 5. Theater Revenue A movie theater only keeps a percentage of the revenue earned from ticket sales.…
A: Below is the required code and sample output:
Q: Create an application named SalesTransactionDemo that declares several SalesTransaction objects and…
A: using System;using System.Globalization;class SalesTransaction { public string Name;…
Q: Write an application that allows the user to choose insurance options in JCheckBoxes. Use a…
A: The JCheckBox class is used to create a checkbox. It is used to turn an option on (true) or off…
Q: Write the accessors for a property named CustomerNumber that assigns a string value to the…
A: Accessors in Visual Basic Properties in visual basic consist of either one or two blocks known as…
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: In Chapter 2, you created an interactive application named MarshallsRevenue. The program prompts a…
A: Code of the given question is :-
Q: a) The interface will now display the sale totals for each of the different packs. For example, if…
A: Program Plan: Modify the Chopkins Toys application to show a modified invoice. For this make another…
Q: package quiz1; public class TeachingStaff int totalloadUnits; (1) Employee { public…
A: 1. extends (because TeachingStaff is inheriting Employee) 2. idNumber 3. name 4. age 5. salary
Q: Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub…
A: Required: Create a C# application for MotorHub using Visual Studio. The application should be titled…
Q: Create a C# application for MotorHub using Visual Studio. The application should be titled “MotorHub…
A: Solution
Q: Also, workers in skill level 3 can elect to participate in the retirement plan at 3% of their gross…
A: kindly check the step 2 for code and step 3 for output
Q: In Chapter 2, you created an interactive application named MarshallsRevenue, and in Chapter 3 you…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: There are three seating categories at an athletic stadium. For a baseball Class A seats cost $15…
A: These values from this table is used for reference. Program Plan:
Q: The Financial officer at RGI wants you to develop an application that will evaluate the company's…
A:
Q: Please use C++ Create an application named SalesTransactiobDemo that declares several…
A: Program in C++: #include <iostream>#include<conio.h>#include<string.h>using…
Q: The EventRegister application requires a File menu with an Exit menu item that exits the…
A: Netbeans use 8.2 MySQL is the database that is used. Download and extract to a specified location…
The Item class contains a Private variable named _dblCost. The variable is associated with the Public Cost property. An application instantiates an Item object and assigns it to a variable named phone. Which of the following can be used by the application to assign the number 150.65 to the _dblCost variable?
a. phone.Cost = 150.65
b. item.Cost = 150.65
c. phone._dblCost = 150.65
d. item._dblCost = 150.65
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- The Inventory class contains a Private variable named strId. The variable is associated with the Public ItemId property. An application instantiates an Inventory object and assigns it to a variable named onHand. Which of the following can be used by the application to assign the string “XG45” to the strId variable? a. onHand.ItemId = "XG45" b. ItemId.strId = "XG45" c. onHand.strId = "XG45" d. ItemId.strId = "XG45"The Purchase class contains a ReadOnly property named Tax. The property is associated with the Private dblTax variable. A button’s Click event procedure instantiates a Purchase object and assigns it to the currentSale variable. Which of the following is valid in the Click event procedure? a. lblTax.Text = currentSale.Tax.ToString("C2") b. currentSale.Tax = 15 c. currentSale.Tax = dblPrice * 0.05 d. None of the above.The Donut Shoppe sells four varieties of doughnuts: Glazed (1.05), Sugar (1.05), Chocolate (1.25), and Filled (1.50). It also sells regular coffee (1.50) and cappuccino (2.75). The store manager wants you to create an application that displays a customers subtotal, 6% sales tax, and total due. Create a Windows Forms application. Use the following names for the project and solution, respectively: Donut Project and Donut Solution. Save the application in the VB2017\Chap06 folder. Create the interface shown in Figure 6-57. When coding the application, use one independent Sub procedure to determine the subtotal, which is the total cost without the sales tax. Use a function to determine the sales tax. Use an event-handling Sub procedure to clear the output. Save the solution and then start and test the application.
- In Chapter 2, you created an interactive application named MarshallsRevenue, and in Chapter 3 you created a GUI version of the application named MarshallsRevenueGUI. The programs prompt a user for the number of interior and exterior murals scheduled to be painted during the next month by Marshalls Murals. Next, the programs compute the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The applications also display the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now, modify one or both of the applications to accept a numeric value for the month being scheduled and to modify the pricing as follows: Because of uncertain weather conditions, exterior murals cannot be painted in December through February, so change the number of exterior murals to 0 for those months. Marshall prefers to paint exterior murals in April, May, September, and October. To encourage business, he charges only $699 for an exterior mural during those months. Murals in other months continue to cost $750. Marshall prefers to paint interior murals in July and August, so he charges only 9450 for an interior mural during those months. Murals in other months continue to cost $500.In Chapter 2, you created a program for Marshalls Murals that prompts a user for the number of interior and exterior murals scheduled to be painted during the next month. The program computes the expected revenue for each type of mural when interior murals cost $500 each and exterior murals cost $750 each. The application should display, by mural type, the number of murals ordered, the cost for each type, and a subtotal. The application also displays the total expected revenue and a statement that indicates whether more interior murals are scheduled than exterior ones. Now create an interactive GUI program named MarshallsRevenueGUI that performs all the same tasks.In Chapter 2, you created an interactive application named GreenvilleRevenue, and in Chapter 3 you created a GUI version of the application named GreenvilleRevenueGUI. The programs prompt a user for the number of contestants entered in this years and last years Greenville Idol competition, and then they display the revenue expected for this years competition if each contestant pays a $25 entrance fee. The programs also display a statement that compares the number of contestants each year. Now, replace that statement with one of the following messages: If the competition has more than twice as many contestants as last year, display The competition is more than twice as big this year! If the competition is bigger than last years but not more than twice as big, display The competition is bigger than ever! If the competition is smaller than last years, display, A tighter race this year! Come out and cast your vote!
- Create an application named SalesTransactionDemo that declares several SalesTransaction objects and displays their values and their sum. The SalesTransaction class contains fields for a salesperson name, sales amount, and commission and a readonly field that stores the commission rate. Include three constructors for the class. One constructor accepts values for the name, sales amount, and rate, and when the sales value is set, the constructor computes the commission as sales value times commission rate. The second constructor accepts a name and sales amount, but sets the commission rate to 0. The third constructor accepts a name and sets all the other fields to 0. An overloaded + operator adds the sales values for two SalesTransaction objects.A Property procedure named City is associated with a Private variable named _strCity. Which of the following statements should be entered in the procedure’s Get block of code?a. _strCity = valueb. City = valuec. Return _strCityd. Return CityPlease written by computer source Problem Description:(The Account class) Design a class named Account that contains:A private int data field named id for the account (default 0).A private string data filed named first name for customer first name.A private string data filed named last name for customer last name.A private double data field named balance for the account (default 0).A private double data field named annualInterestRate that stores thecurrent interest rate (default 0). Assume all accounts have the sameinterest rate.A private Date data field named dateCreated that stores the date whenthe account was created.A no-arg constructor that creates a default account.A constructor that creates an account with the specified id, firstname, last name and initial balance.The accessor and mutator methods for id, name, balance, andannualInterestRate.The accessor method for dateCreated.A method named getMonthlyInterestRate() that returns the monthlyinterest rate.A method named withdraw…
- make a payroll application that will have a group box titled Payroll Information. The group box will have textboxes and labels for the user to enter the following information: Employee ID, Employee Name, Hourly Rate, and Weekly Hours Worked. There will also be a Submit and Display button (see left side on example form below).On the opposite side of the form you will need a heading and 2 labels for each of the following: Employee ID, Employee Name, Hourly Rate, Weekly Hours Worked, Overtime Hours Worked, Overtime Pay, Gross Pay, Social Security, FICA, and Net Pay. (see right side on example form below)There should also be a functional button for Clear (clears textboxes and non-identifying labels) and Exit.You should include a class called Payroll that creates private variables for id, name, wage, hours worked, social security Tax, FicaTax, gross pay, net pay, overtime hours and overtime pay. You should also have a private constant for Social Security Tax Percentage set to 6.2% and Fica…The Item class contains a Public method named GetDiscount. The method is a function. An application instantiates an Item object and assigns it to a variable named cellPhone. Which of the following can be used by the application to invoke the GetDiscount method? a. dblDiscount = Item.GetDiscount b. dblDiscount = cellPhone.GetDiscount c. dblDiscount = GetDiscount.cellPhone d. cellPhone.GetDiscountCreate an application that lets the user enter the following pieces of data: • The user’s first name • The user’s middle name • The user’s last name • The user’s preferred title (Mr., Mrs., Ms., Dr., etc.) Assume the user has entered the following data: • First name: Kelly • Middle name: Jane • Last name: Smith • Title: Ms. The application should have buttons that display the user’s name formatted in the following ways: Ms. Kelly Jane Smith Kelly Jane Smith Kelly Smith Smith, Kelly Jane, Ms. Smith, Kelly Jane Smith, Kelly