Introduction To Programming Using Visual Basic (11th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
11th Edition
ISBN: 9780135416037
Author: David I. Schneider
Publisher: PEARSON
Question
Book Icon
Chapter 4.2, Problem 24E
Program Plan Intro

Program Plan:

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.

Blurred answer
Students have asked these similar questions
Price-to-Earnings Ratio Request a company’s earnings-per-share for the year and the price of one share of stock as input, and then display the company’s price-to-earnings ratio (that is, price/earnings). See Fig. 3.25.
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.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr