Starting Out With Visual Basic (7th Edition)
7th Edition
ISBN: 9780134400150
Author: Tony Gaddis, Kip R. Irvine
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Q.6/ Design a form with a text box. Use select statement so that when
user enters g, b, r and y then form colored to green, blue, red, and yellow
respectively.
Indicate two button variables that may be utilised when the MessageBox function is invoked.
Q: Write a code that take three numbers as input on three textboxes, calculates the average of three numbers and display the finals result on text box.
Chapter 5 Solutions
Starting Out With Visual Basic (7th Edition)
Knowledge Booster
Similar questions
- Name two button constants that can be used when calling the MessageBox function.arrow_forwardThe following condition evaluates to True when the string stored in the strLetter variable is lowercase letter; otherwise, it evaluates to False. Please complete the code. If strLetter Like ....... Thenarrow_forwardProgram Purpose - Professional Athletes often hire other professionals to help take care of matters for them. We will group them in four categories: Lawyers, Personal Assistants, Agents, and Trainers. They all get paid a percentage of the athlete's total yearly salary. Lawyers - 10%, Personal Assistants - 3%, Agents - 7%, and Trainers - 5% . Prompt the user to enter the athlete's salary for the year (ensure that the entered value is positive). The user should then enter the name and category of each of the hired professionals. The athlete should be able to hire as many professionals in each category as he/she wants, even if it is more than he/she can afford. Based on the category, calculate the amount that each professional should be paid. After all data has been entered, print the names of each professional hired, how much each is being paid, the total amount the athlete paid, and how much the athlete has left.arrow_forward
- 1. Create a variable called NUMBER and assign the value 9 to it 2. Create an IF statement that will print out “the number is greater than 5” IF the NUMBERis greater than 5 3. Create an ELSE statement that will print out “the number is less than 5” if the number isless than 5 4. Test the code to make sure it works. Make sure to test a number greater than 8 andless than 8 5. Copy the code into the submission box or attach the code file to your submissionarrow_forwardWelcomes user to the Windchill Temperature (WCT) Weather Report calculator. Prompts the user to enter the decimal precision (within range 1--4) at which WCT will be reported. If a user inputs an out-of-range value for 'decimal precision' then print a message and exit (see samples below). Prompts the user to enter the name of location for which WCT will be calculated. Prompts the user to enter the air temperature and wind velocity for this location. You can assume that the user always enters a valid float value for these. Prints the WCT at the desired precision. WCT can be calculated using the National Weather Service calculation given at the bottom of this figurearrow_forwardInside the parentheses of the for statement are three items, separated byarrow_forward
- Part (1): Write a Scilab code to calculate the surface area and volume for a cube, cuboid, cone, and cylinder. The user should specify the shape followed by the required dimension (ex. For cube input base, for cylinder input radius and height etc.......) Ask the user to enter the shape. • If the user entered any wrong shape other than mentioned above, display the message "Wrong Option" • Ask the user to enter the required dimensions. Ask the user to specify the required output (Surface area or volume). Display the specified output. Comment on each line in your code,arrow_forward16. Which statement will add leading zeroes to x? string x + = "0" string x = "0" + x either of the option none of the optionsarrow_forwardWrite the code to display a dialog box that asks the user to enter his or her desired annualincome. Store the input in a double variable.arrow_forward
- Create an application using VISUAL BASIC that when the user clicks a button, call a sub procedure to input a student name, size and quantity of shirts ordered. Write a function to order price based on the rule: If the size is Small or Medium, the price is $10 per shirt, otherwise the price is $12.00 per shirt. Output to a label as shown using a sub procedure. (Use input validation where necessary). Your calls to your sub procedures and a function should look like this in the click event procedure of the button: Dim name as String Dim size as String Dim qty as Integer Dim price as Double : : InputShirtInfo(name, size, qty) price = CalcPrice(size, qty) OutputOrderInfo(name, price)arrow_forwardQ9:- Use (If – Then – Else) statement to write a visual basic program to read x and compute the following equation. Use text boxes for reading the input and display the output result. x2. Sx - 20 if x >0 if x=0 x2 + (5x) 2- 1o ifx<0 Where Vr =x0.5arrow_forwardQ: what is the left side of the following expression: xOy1?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,