Introduction to Programming Using Visual Basic (10th Edition)
10th Edition
ISBN: 9780134542782
Author: David I. Schneider
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 4.2, Problem 24E
Program Plan Intro
1. Variables mentioned below are used:
- txtInput- A text box where the input should be entered.
- txtOutput- A text box where the output is displayed.
- btnOutput- Button which invokes the procedure for displaying output.
2. Functions mentioned below are used:
- btnDisplay_Click()- Procedure for displaying the output in text box txtOutput.
Program description:
To write a program that calculates the total cost and displays it based on the number of copies which is input by the user.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Convert Months Write a program that allows the user to enter a whole number of monthsand then converts that amount of time to years and months. See Fig. 3.38. The programshould use both integer division and the Mod operator.
Age Write a program that requests your date of birth as input and tells your age. Hint:Use the DateDiff function with the DateInterval.Year option, and then use an If block tomodify the result. See Fig. 4.23 and the note in Exercise 40.
Problem Description:
Standard telephone keypads contain the digits zero through nine. The numbers two through nine each have three letters associated with them (Fig. 1). Many people find it difficult to memorize phone numbers, so they use the correspondence between digits and letters to develop seven-letter words that correspond to their phone numbers. For example, a person whose telephone number is 686-2377 might use the correspondence indicated in Fig. 1 to develop the seven-letter word “NUMBERS.” Every seven-letter word corresponds to exactly one seven-digit telephone number. A restaurant wishing to increase its takeout business could surely do so with the number 825-3688 (i.e., “TAKEOUT”).
Fig. 1: Telephone keypad digits and letters.
Every seven-letter phone number corresponds to many different seven-letter words, but most of these words represent unrecognizable juxtapositions of letters. It’s possible, however, that the owner of a barbershop would be pleased to know that the…
Chapter 4 Solutions
Introduction to Programming Using Visual Basic (10th Edition)
Knowledge Booster
Similar questions
- Flow chart and peseudocode of Get the name of the student A. If the student is regular, get his/her section. Then display his/her name and section B. If the student is irregular, get his/her course. Then display his/her name and course.arrow_forwardGrowth of an Investment Suppose a fixed amount of money is deposited at the beginning of each month into an investment paying 6% interest compounded monthly. After each deposit is made, [new balance]=1.005∗[previous balance one month ago]+ [fixed amount]. Write a program that requests the fixed amount of the deposits as input and displays the balance after each of the first four deposits. See Fig. 5.14.arrow_forwardSort Three Numbers Write a program that requests three different numbers as input and then displays the numbers in order. Use a Procedure named Sort to which the three values are passed ByRef and use a “Swap” procedure similar to the one in Example 3. See Fig. 5.36.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_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_forwarduse pythonarrow_forward
- Q4/ Ex: Design a program to calculate the area of the shaded part shown in the figure: the width of the rectangular (W6 cm) the radius for each quarter circle (r= 3 cm) input all the information's by an input box, the length of the rectangular (L-10 cm) appear in the location (8000,1000) and print all results on the form by the font (Tahoma), bold with the size (14). Create a command button to exit from the program and use (s) to stop input process. Let the program carry out results continually. L ky M Karrow_forwardCreate a non-screen receipt where the buyer can see the quantity, product name, unit price, and quantity*unit price of each item he bought. The receipt can also display the total amount he has bought.The user (the cashier) can only inputthe quantity of each product that the buyer/customerhas bought. **Assume that only 5 products are for sale. (C Language)arrow_forwardComputer Science Plz use Vi editor, show a sample outputarrow_forward
- bläi 10 Design the following program, so that the first button (Insert) adds the items to the list box from the textbox, the second (Delete) removes the items from the list box based on the text written in the textbox and the last button(clear) .cleans the textbox Form1 Insert Delete Ceararrow_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_forwardLocate a Letter Write a program that requests a letter, converts it to uppercase, and gives its first position in the sentence “THE QUICK BROWN FOX JUMPS OVER A LAZY DOG.” See Fig. 3.31.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage