Visual Basic problem: Create a new project with one form. Give the form a meanin
ID: 3774862 • Letter: V
Question
Visual Basic problem:
Create a new project with one form. Give the form a meaningful name and make sure that the text Tip Calculator displays on the top of the form (5 points).
Change the form size: make it 600 points wide and 440 points high (5 points).
Place a picture box on the form and use any restaurant pic as the source image. Make sure that the picture box is automatically sized to fit the image. Add a label on the top that shows the title of the program (Restaurant Tip Calculator) – change the font size and the color according to your choice (5 points).
Add controls to the form similar to what they look in the picture (all labels are shown in bold).
Add a text box to input the amount of the bill (5 points).
Add combo box to hold the tax amount. (5 points).
Add three radio buttons for choosing the tip: 15%, 18%, and 20% (5 points).
Add a button for calculating the tip (5 points).
Add two text boxes to display the total and the total per person. Make them disabled (user should see them but not be able to change the text inside) (5 points).
Add a combo box to hold the number of guests (5 points).
Write the loops that will run when the form is loaded and populate the combo boxes (you need to use the loops to get the points):
Place the following lines in the tax combo box: 4%, 5%, 6%, and 7% (5 points)
Place the numbers 1, 2, … , 12 in the combo box with the number of guests (5 points)
Add the following functionality to the program:
The user can enter the amount of the bill in the top text box (5 points).
The user can choose one of the four tax rates in the tax combo box (5 points).
The user can check one radio button at a time to choose the tip (5 points).
When the user clicks the button to calculate the total, the program should add the tax amount to the bill. The program then will check what tip was selected, calculate the amount of the tip and add it to calculate the total (5 points).
If no radio button was clicked, the program should display a message to the user asking to choose the tip amount (the program does nothing if no tip was selected) (5 points).
The program displays the calculated total in the Total text box (5 points).
The program displays everyone’s share in the Total per person text box (5 points).
Make sure that if nothing is selected as the tax rate or nothing is selected as the tip, the program does not display any results in the Total text box (5 points).
Explanation / Answer
substring(spaceIndex + 1, play.length()); participant.add(word); opponent.dispose of(stolen); pool.upload(stolen); pool.take away(phrase); else if (!(play.equals(“”))) // regular play if (!(phrases.contains(play))) device.out.println(“Sorry, ” + play + ” isn't a word.”); else participant.add(play); pool.take away(play); system.out.println(); /** Create and play the game. */ public static void most important(String[] args) Anagrams recreation = new Anagrams(); machine.out.println(“Welcome to Anagrams.”); device.out.println(); device.out.println(“To make a phrase from the pool, enter it.”); system.out.println(“To steal a word, input the brand new phrase, a” + ” space, and the word being stolen.”); system.out.println
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.