Calculate the amount of a waiters tip

Assignment Help Visual Basic Programming
Reference no: EM13545103

PART I:

Complete the following programming exercise.

Write a program to carry out each task. The program should use variables for each of the quantities and display the outcome in a text box with a label.

1. Calculate the amount of a waiter's tip, given the amount of the bill and the percentage tip as input.

2. Convert a percentage to a decimal. For instance, if the user enters 125% into a text box, then the output should be 1.25.

3. Write a program that contains a button and a read-only text box on the form, with the text box initially containing 100. Each time the button is clicked on, the number in the text box should decrease by 1.

4. Request a company's annual revenue and expenses as input, and display the company's net income (revenue minus expenses).

Determine the output oriduced by the lines of code.

1. txtOutput.Text = FormatNumber(1234.56, 0)
2. txtOutput.Text = FormatNumber(-1234.56, 3)
3. txtOutput.Text = FormatNumber(1234, 1)
4. txtOutput.Text = FormatNumber(12345)
5. txtOutput.Text = FormatNumber(0.012, 1)
6. txtOutput.Text = FormatNumber(-2 / 3)


PART II:

Write a two page research paper on VB input and output as discussed in the textbook. Explain the concepts discussed in the textbook using at least one example not included in the textbook.

Use two other resources and list each resource used at the end of paper in the reference list section. Please remember that you may utilize LIRN to help you search for resources.

Reference no: EM13545103

Questions Cloud

Calculate how high do they jump : NBA player Michael Jordan had one of the longest hang times in the league, about 0.92s. how high do they jump
Evaluate the molar heat of neutralization : Calculate the molar heat of neutralization. Assume the specific heat of the solution is 4.184 J/g*degrees C. The heat capacity of the calorimeter is 32.5 J/degrees C.
Find the speed and horizontal force exerted on the car : A mechanic pushes a 2.4 103 kg car from rest to a speed of v, doing 5100 J of work in the process. During this time, the car moves 29.0 m. find the speed v and horizontal force exerted on the car
What is the position of the next closest image : Two plane mirrors stand facing each other, 3.23 m apart, and a woman stands between them. The woman faces one of the mirrors from a distance of 1.30 m and holds her left arm out to the side of her body with the back of her hand facing the closer m..
Calculate the amount of a waiters tip : Write a program to carry out each task. The program should use variables for each of the quantities and display the outcome in a text box with a label.
Explain equation in acid solution and determine spontaneous : Balance the following equation in acid solution and determine if it is spontaneous when all ion concentrations are 0.010 M and the gas pressure is 1 atm. NO3¹? (aq) + Sn²? (aq) ? NO(g) +Sn4? (aq)
Use a negative number if the image is behind the mirror : An object is placed 45 cm from a concave mirror of radius 92 cm. (a) Find the location of the image. (Enter in cm. Use a negative number if the image is behind the mirror) cm (b) What is the magnification of the mirror? Is the image real or virtual? ..
Evaluate the angle of incidence : The angle of refraction of a ray of light traveling through a piece of fused glass quartz is 41°. Find the angle of incidence
Evaluate equilibrium constant, if delta gf for nh3 : Calculate Equilibrium constant, if delta Gf for NH3(aq) is -26.50 kj/mole; for H2O(l) is 237.13 kj/mole;for NH4+(aq) is -79.31 kj/mol; for OH-(aq) is 157.3 kj/mole. How many moles of NH4Cl must be added to 1.0L of 0.10M NH3 to make a buffer whose ..

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

  Change the color of the text in the redlabel to red

Write that visual basic instruction to change the color of the text in the redlabel to red.

  Main objectives of the assessmentnbspthe aim of the

main objectives of the assessmentnbspthe aim of the assessment is to develop a visual basic console application that

  Module scope and procedure scope

What are the differences between a module scope and procedure scope? How do you declare a procedure-level and module-level variable?

  Create an application that list accounts from a dictionary

Create an application that list accounts from a Dictionary Object. Create an Account Class that contains an ID, Name, and Balance.

  Develop calendar screens for windows

Develop calendar screens for Windows and imagine you need to present IT troubleshooting best practices to junior systems administrators at an IT department meeting to ensure departmental efficiency with solving issues.

  Gas pumpa gas pump calculates the cost of gas at a local

gas pumpa gas pump calculates the cost of gas at a local gas station. the station charges 2.69 per gallon for regular

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Create visual basics application-functionality of gas pump

Create an visual basics application that simulates the functionality of the gas pump. The user enters the number of gallons to purchase and clicks the desired grade.

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Simple calculator program

Build a simple calculator program with an Access form that allows a user to enter numbers in two separate text boxes. The Access form should have four separate command buttons for adding, subtracting, multiplying, and dividing. Write code in each com..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd