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.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 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.Cookie Calories 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.Tip, Tax, and Total Create an application that lets the user enter the food charge for a meal at a restaurant. When a button is clicked, the application should calculate and display the amount of a 15 percent tip, 7 percent sales tax, and the total of all three amounts.
- Theater RevenueA movie theater only keeps a percentage of the revenue earned from ticket sales. The remainder goes to the movie company. Create a GUI application that allows the user to enter the following data into text fields:� Price per adult ticket� Number of adult tickets sold� Price per child ticket� Number of child tickets soldThe application should calculate and display the following data for one night�s box office business at a theater:� Gross revenue for adult tickets sold. This is the amount of money taken in for all adult tickets sold.� Net revenue for adult tickets sold. This is the amount of money from adult ticket sales left over after the payment to the movie company has been deducted.� Gross revenue for child tickets sold. This is the amount of money taken in for all child tickets sold.� Net revenue for child tickets sold. This is the amount of money from child ticket sales left over after the payment to the movie company has been deducted.� Total gross revenue. This…Sales Tax and Total Create an application that allows the user to enter the amount of a purchase. The program should then calculate the state and county sales tax. Assume the state sales tax is 4 percent and the county sales tax is 2 percent. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of purchase plus the total sales tax).Falling Distance When an object is falling because of gravity, the following formula can be used to determine the distance the object falls in a specific time period: d =1/2gt2 The variables in the formula are as follows: d is the distance in meters, g is 9.8, and t is the amount of time in seconds that the object has been falling. Create an application that allows the user to enter the amount of time that an object has fallen and then displays the distance that the object fell. The application should have a method named FallingDistance. The FallingDistance method should accept an object’s falling time (in seconds) as an argument. The method should return the distance in meters that the object has fallen during that time interval.
- 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.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. in visiual basic formA 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. Complete on Visual Basics