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)
- ICT can provide both opportunities and challenges to humanity. The Internet can offer modes for empowerment and convenience, but it can also promote the digital divide and fraud. Learning Task 3: Write an essay about: “The Power of Media and Information to Affect Change, and the Responsibility of the Users." The essay must have an introduction, body and conclusion. The number of words must be 450-500. The essay will be graded according to the rubric as seen on the next page. IIarrow_forwardAlgorithm Steps Fig 2: (I have provided an algorithm and fewer code hints) 1. Set coordinates for NORTH, SOUTH, WEST, and EAST each 100pixels away from center (0,0) 2. Set outer circle size = 40 and inner circle size = 20 3. Set window size 600x600 4. Draw y-axis by connecting NORTH and SOUTH 5. Draw x-axis by connecting WEST and EAST 6. Display name of coordinates 7. Position point to draw circle 8. Set angle 90 degree 9. Set color to red 10. Draw outer circle 11. Draw inner circle and fill redarrow_forwardCritical section.arrow_forward
- Introduction Some number of teams are participating in a race. You are not told how many teams are participating but you do know that: Each team has a name, which is one of the uppercase letters A-Z. No two teams have the same name, so there are a maximum number of 26 teams. Each team has the same number of members. No two runners cross the finish line at the same time – i.e. there are no ties. At the end of the race we can write the results as a string of characters indicating the order in which runners crossed the finish line. For example: ZZAZAA We can see there were two teams: A and Z. Team A’s runners finished in 3rd, 5th and 6th place. Team Z’s runners finished in 1st, 2nd and 4th place. Scoring the race Each runner is assigned a score equal to their finishing place. In the example above team Z’s runners achieved scores of 1, 2 and 4. Team A’s runners scores were 3, 5, and 6 respectively. The team’s score is the sum of the members score divided by the number of people on…arrow_forwardSpreadsheet formula to the task below.arrow_forwardCreate a program using ladderized-if statement to display student's remarks based on the average grade, Combined/Compound condition (using logical operator such as AND/OR) is not allowed. Average Grade Remarks 95-100 Excellent 90-94 Outstanding 85-89 Very Good 80-84 Good 75-79 Poor Below 75 (0-74) Failed Sample Runs: Enter average grade: 96 Excellent Enter average grade: 90 Outstanding Enter average grade: 73 Failed Enter average grade: 101 Grade out of range Enter average grade: -1 Grade out of rangearrow_forward
- Create flow chart to print the result of 25 students in a class. Assume that each student has 4 grades. Find the average of the grades. If it is greater than or equal to 50 then display the student is passed otherwise student is failed. Print the result and average for 25 students.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_forwardTASK 02 Part A The rate of change of a population of bacteria in a petri-dish can be described as the difference between the birth rate and the death rate. If the birth rate = bx, where b is a constant and x is the number of bacteria, and if death rate= px^2, where p is a constant, answer the following questions based on the description provided. 2.A.1) Provide the differential equation related to the rate of change of bacterial population with time based on the above given information. 2.A.2) If b=1, and p=-0.8, solve the differential equation stated in 2.1 using Matlab assuming there were 1500 bacteria present in the dish initially. (Provide a clear screen shot of the code and solution obtained in the answer script) 2.A.3) "ezplot" command is useful to obtain a quick visualization of a function. Plot a graph of the solution using the 'ezplot' command to show the population of bacteria present after 2 hours. 2.A.4) Comment on the state of the population of bacteria after 2 hours using…arrow_forward
- VB 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_forwardHome 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_forwardwrite pseudocode to implement the flowchart below. Make sure that proper indentation is included to make the structure clear.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage