Implementation of a
Program Plan:
In the following program, an event procedure is created that calculates the percent increase due to the cost of a grocery basket containing goods.
The variables, begOfYearCost, endOfYearCost, and percentIncrease, are to be declared as decimal.
The variable, begOfYear, is initialized to 200.
The cost at the end of the year is to be entered in an input dialog box that will be assigned to endOfYearCost.
Assign the result of the expression, “(endOfYearCost - begOfYearCost) / begOfYearCost� to percentlncrease.
Display the percent increase for the year.
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Introduction to Programming Using Visual Basic (10th Edition)
- Spreadsheet formula to the task below.arrow_forwardGrades of 30 students entered on the keyboard will be entered. Write down the algorithm and flow chart of the program showing the sum and average of the grades on the screen. (It will be checked whether the entered grades are in the range of 0-100).arrow_forwardPROGRAMMING PROBLEM The inventory of a shoe store lists shoes by stock number. With each stock number, there is associated a style number in the range of 0 to 50, the number of pairs in each size (sizes range from 3 to 14) and a price. A program is to be written to keep track of the inventory. The user is given the following choices: enter a new record, display a record, change the price of the stock item, or change the number on hand. When specifying a record the user may give either the stock number, or the style number. The array index can be used as a stock number. If the user decides to change the stock on hand, the program should ask which sizes will have their stock on hand changed. The program should be designed to run indefinitely, keeping track of changed in stock.arrow_forward
- 4-5 A Girl Scout needs to calculate the total dollar amount of her cookie orders. User input should be used to find the quantities sold of Smores, Thin Mints, Caramel DeLites, Shortbread, and Peanut Butter Patties. Use a selling price of $5 per box for Smores and Caramel DeLites, $4 per box for Thin Mints and Peanut Butter Patties, and $3 per box for Shortbread cookies. Print the total number of boxes sold, the total revenue for each flavor, and the total amount collected for all cookies. Use the main function and a function to calculate the sales. python 3 or above please.arrow_forwardProgramming Exercises 349 Programming Exercises 1. Payroll Program with Input Validation Design a payroll program that prompts the user to enter an employee's hourly pay rate and the number of hours worked. Validate the user's input so that only pay rates in the range of $7,50 through $18.25 and hours in the range of 0 through 40 are accepted. The program should display the employee's gross pay. wing prices for st $15 each, A 500 seatsarrow_forwardVB Small Project 16 – Function Pattern this Visual Basic program after Small Project 15: Main() Create the random number in the same way. EvenOrOdd Function() Pass that number into this function, where it will be found to be either Even or Odd. Return a value indicating which one that will be used back in Main. DisplayResults Sub The result from the EvenOrOdd Function is passed into this Sub and the same results as from SP 15 will be printed.arrow_forward
- Home Buffet is trying to make a comeback. They want to offer special prices to the seniors an children to eat at their Buffet. Create a flow chart that meets the following requirements: Read age if age is 50 or more, display: "Welcome Senior, you get 80% discount" if age is 10 or less, display: "Welcome Young adult, you eat for FREE!" if age is between 11 and 49 display: "The price for your lunch is $8" Note: Use draw.io Links to an external site.to create the flowchartarrow_forwardInclude the IPO chart and algorithm.arrow_forwardPython language Create a Visual Basic project for MRC’s Theatre Department to handle subscriptions for next year’s season. The user enters their name, address, city, province, postal code, credit card number, credit card expiry date and number of subscriptions (seats) required. S/he also enters whether the seats should be in Section A (the default), B or C (the prices vary by section). A subscription can be for one or more plays, so the user must specify which plays s/he wants to go to (the plays are Blood Relations, Jenny’s Story, Ah! Wilderness, and The Diary of Anne Frank). There is also a space on the form for the user to (optionally) enter a sum of money to be used as a donation to the theatre program. When the person clicks on the Cost button, six dollar amounts are displayed: the standard cost of the tickets, the amount of discount (people who buy 5 or more subscriptions get a deal), the subtotal (standard cost minus discount), GST, total cost, and amount due (total +…arrow_forward
- Problem Complete the given program so that will ask the user to enter 5 fruit itemsgiven the name, price, and taste. The program will then display the total price of each group item base on the taste. Using Swift programmingarrow_forwardWhich part of a paragraph often illustrates the point being made?arrow_forwardExercise C: The goal is to find all the pairs of keywords such that at least 1000 documents contain both keywords. The 2 keywords must be different.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage