Starting Out With Visual Basic (7th Edition)
Starting Out With Visual Basic (7th Edition)
7th Edition
ISBN: 9780134400150
Author: Tony Gaddis, Kip R. Irvine
Publisher: PEARSON
Students have asked these similar questions
Indicate two button variables that may be utilised when the MessageBox function is invoked.
Program 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.
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 submission

Chapter 5 Solutions

Starting Out With Visual Basic (7th Edition)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,