A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a serving equals 300 calories. Create an application that lets the user enter the number of cookies he or she actually ate and then reports the number of total calories consumed.
Q: Tip, Tax, and Total Create an application that lets the user enter the food charge for a meal at a…
A: FORM DESIGN:
Q: Control is used to display text, 3 points but user cannot change it directly * Command button…
A: ( 1 ) Answer :- option D) Label Explanation :- Label Control is used to display text, but user…
Q: You have been hired by PetPals Veterinary Clinic to modify its Bill Calculator application. Upon…
A: Explanation: The double data type is used to store the real or decimal number with double…
Q: Fat Percentage Calculator One gram of fat has 9 calories. If you know the number of fat grams in a…
A: Form Design: View the Form Design in IDE. Set the Form Control properties in the Properties window.
Q: 5. DISTANCE CONVERTER In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12…
A: The complete answer in C# Code is given below:
Q: 3. Solar Panel Installation The Megawatt solar panel company installs solar panels on home rooftops.…
A: The complete code is given below with the output.
Q: Programming Problems 1. Distance Calculator If you know a vehicle's speed and the amount of time it…
A: Answer is given below .
Q: 7. SOFTWARE SALES A software company sells a package that retails for $99. Quantity discounts are…
A: #include <iostream> #include <iomanip> using namespace std; int main() {…
Q: A control's attribute, like the attributes of other controls, determines whether or not the control…
A: Attribute Control Charts are available as a set of control charts explicitly built to monitor…
Q: Programming Problems 1. Distance Calculator If you know a vehicle's speed and the amount of time it…
A: We have to write a code sample that uses a while loop to read the file and display its contents in…
Q: The sales manager wants an application that allows him to enter the current bonus rate. The program…
A: Program Explanation: Declare the header files Define the main function Declare variables to store…
Q: When you run an application, the application’s form is loaded into memory and an event known as the…
A: The answer is given below,
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: 1. Dorm and Meal Plan Calculator (Nr 6, Page 622) A university has the following dormitories: E…
A: we have to create two separate code one for form 1 and second for form 2 in first form name as…
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: Choose correct option The code contained in the ...............…
A: Choose correct option Question. The code contained in the ............... allows an application to…
Q: Latin Translator Look at the following list of Latin words and their meanings: Latin English…
A: Design the Form: Place a Label and three Button controls on the form. Change the names and…
Q: A painting company has determined that for every 115 square feet of wall space, 1 gallon of paint…
A: Program Approach: Using the namespace for standard input/ output. Defining a class within which…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A:
Q: 5. DISTANCE CONVERTER In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12…
A: ANSWER:-
Q: Create an application that lets the user enter his or her weight (in pounds) and height (in inches).…
A: Take a variable for the height. Take a variable for the weight. Input the height and weight. Take a…
Q: Create an application that calculates the total cost of a hospital stay. The daily base charge is…
A:
Q: Financia you to develop application Will evaluate the company's asset's annual depreciation using…
A: Public Class RGI Private Sub Display_Click(sender As Object, e As EventArgs) Handles…
Q: How Much Insurance?Many financial experts advise that property owners should insure their homes…
A: The financial expert advises that the property owner should insure their building for at least 80…
Q: Retail Price Calculator Create an application that lets the user enter an item’s wholesale cost and…
A: In the function CalculateRetail() – Pass 2 arguments – wholesale price and the markup percentage.…
Q: 1. Salesperson's Commission Calculator (Nr I, Page 408) Create an application that lets the user…
A: Screenshot of the Form:
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: 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: Palestinian Hotels application Write an application that displays a menu system. The menu system…
A: Objective: This program uses GUI to include two lists and a button. Clicking the button, the total…
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: Sales Tax and Total Create an application that allows the user to enter the amount of a purchase.…
A:
Q: 5. DISTANCE CONVERTER In the English measurement system, 1 yard equals 3 feet and 1 foot equals 12…
A: Program Approach:-1. using System2. using System.Windows.Forms;3. Create the form 4.Create the…
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: Please Create an application that allows the user to enter the gender (either F or M) and GPA for…
A: Code part Public Class Form1 ''declaring the global varibales Dim totalNumberOFStudents,…
Q: True or False Forms and most controls have a Preferences property that allows you to change the…
A: Explanation: BackColor and ForeColor are two different properties of the controls. BackColor 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: erty, like that of other controls, may affect how it appears or vanishes fro
A: Introduction: The application bar (or appbar) control is a menu bar that displays all of the apps in…
Q: To close an application’s form in code, you use the statement __________. a. Close(); b.…
A: The statement “this.Close();” will invoke the current form’s “Form.Close()” method. When closing a…
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: Develop a VB application that reads employee details and computes his payment. The application shall…
A: Answer: our guidelines is answer the first three question from the first question.
Q: The result of a calculation made by an application should be stored in a variable. True or False?
A: A variables is a location in a computer where a programmer or user can keep an item data temporarily…
Q: Create an application that predicts the approximate size of a population of organisms. The…
A: Answer: Program Plan Prompt the user for Starting number of organisms. Prompt the user for Average…
Q: uppose an application has a decimal variable named total and a Label control named totalLabel. What…
A: It is given that, there is a decimal variable named total. Consider the value of the total variable:…
Q: Create two custom initializers. One initializer will take a Double argument that represents height…
A: Create two custom initializers. One initializer will take a Double argument that represents height…
Q: Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the bag claims that…
A: Program approach: Create main() function. Declare essential variables. Input cookies were eaten.…
Q: Create an application that lets the user enter the monthly costs for the following expenses incurred…
A: Program code: //include the required header files #include<iostream> using namespace std;…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Declaring an integer variable packNum two double variable discountTotal and total. Asking Input from…
Q: 0 ا... ? Instructions Write an application named Sumints that allows the user to enter any number of…
A: Given: Write an application named Sumints that allows the user to enter any number of integers…
A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a serving equals 300 calories. Create an application that lets the user enter the number of cookies he or she actually ate and then reports the number of total calories consumed.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. The next problems rely on the generation of a random number. You can create a random number that is at least mi n but less than max using the following statements: Random ranNumberCenerator = new Random(); int randomNumber; randomNumber = ranNumberGenerator .Next(min, max);For each of the following exercises, you may choose to write a console-based or GUI application, or both. Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number of days for a resort stay. Then display the price per night and the total price. Nightly rates are $200 for one or two nights; $180 for three or four nights; $160 for five, six, or seven nights; and $145 for eight nights or more.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!
- The purpose of this exercise is to demonstrate the importance of testing an application thoroughly. Open the FixIt Solution.sln file contained in the VB2017\Chap04\FixIt Solution folder. The application displays a shipping charge that is based on the total price entered by the user, as shown in Figure 4-64. Start the application and then test it by clicking the Display shipping button. Notice that the Shipping charge box contains $13, which is not correct. Now, test the application using the following total prices: 100, 501, 1500, 500.75, 30, 1000.33, and 2000. Here too, notice that the application does not always display the correct shipping charge. (More specifically, the shipping charge for two of the seven total prices is incorrect.) Open the Code Editor window and correct the errors in the code. Save the solution and then start and test the application.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.Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F). Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue an error message for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Z or z for an initial, display each salespersons total, a grand total for all sales, and the name of the salesperson with the highest total.
- Which statement terminates an application that contains only one form? Me.Close() Me.Done() Me.Finish() Me.Stop()Create a lottery game application named Lottery. Generate three random numbers, each between 1 and 4. Allow the user to guess three numbers. Compare each of the users guesses to the three random numbers, and display a message that includes the users guess, the randomly determined three-digit number, and the amount of money the user has won as follows: Â Make certain that your 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.In this exercise, you modify the Grade Calculator application from this chapter’s Apply lesson. Use Windows to make a copy of the Grade Solution folder. Rename the copy Grade Solution-Intermediate. Open the Grade Solution.sln file contained in the Grade Solution-Intermediate folder. Open the CourseGrade.vb file. The DetermineGrade method should accept an integer that represents the total number of points that can be earned in the course. (Currently, the total number of points is 200: 100 points per test.) For an A grade, the student must earn at least 90% of the total points. For a B, C, and D grade, the student must earn at least 80%, 70%, and 60%, respectively. If the student earns less than 60% of the total points, the grade is F. Make the appropriate modifications to the DetermineGrade method and then save the solution. Unlock the controls on the form. Add a label control and a text box to the form. Change the label control’s Text property to “&Maximum points:” (without the quotation marks). Change the text box’s name to txtMax. Lock the controls and then reset the tab order. Open the form’s Code Editor window. The txtMax control should accept only numbers and the Backspace key. Code the appropriate procedure. The grade should be cleared when the user makes a change to the contents of the txtMax control. Code the appropriate procedure. Modify the frmMain_Load procedure so that each list box displays numbers from 0 through 200. Locate the btnDisplay_Click procedure. If the txtMax control does not contain a value, display an appropriate message. The maximum number allowed in the txtMax control should be 400; if the control contains a number that is more than 400, display an appropriate message. The statement that calculates the grade should pass the maximum number of points to the studentGrade object’s DetermineGrade method. Make the necessary modifications to the procedure. Save the solution and then start and test the application.