Create a Visual Basic program that creates a bill for an automobile repair shop.The shop bills customers at the rate of $35 per hour for labor.Parts and supplies are subject to a 5% sales tax.The customer’s name, the number of hours of labor, and the cost of parts and supplies should be entered into the program via textboxes.When the Display Bill button is clicked, the customer’s name and the 3costs should be displayed in a list box as shown below.
Create a Visual Basic program to analyze a mortgage.The user should enter the amount of the loan, the annual percentage rate of interest, and the duration of the loan in months.When the user clicks on the button, the information that was entered should be checked to make sure it is reasonable.If bad data have been supplied, the user should be so advised.Otherwise, the monthly payment and the total amount of interest paid should be displayed.The formula for the monthly payment is:
Payment = p * r / (1 – (1 + r) ^ (-n)),
Where p is the amount of the loan, r is the monthly interest rate (annual rate divided by 12) given as a number between 0 ( for 0 percent) and 1(for 100 percent), and n is the duration of the loan in months.The formula for the total interest paid is:
total interest = n * payment – p.
A furniture manufacturer makes two types of furniture—chairs and sofas. The cost per chair is $350, the cost per sofa is $925, and the sales tax rate is 5%.
Write a Visual Basic program to create an invoice form for an order (see the diagram below). After the data on the left side of the form are entered, the user can display an invoice in a list box by pressing the Process Order button.
The user can click on the Clear Order Form button to clear all text boxes and the list box, and can click on the Quit button to exit the program. The invoice number consists of the capitalized first two letters of the customer’s last name, followed by the last four digits of the zip code.
The customer name is input with the last name first, followed by a comma, a space, and the first name. However, the name is displayed in the invoice in the proper order. The generation of the invoice number and the reordering of the first and last names should be carried out by Function procedures.
Depreciation is the systematic and rational allocation of cost over a period of time.
For tax purposes, an item may be depreciated over a period of several years, n.With the straight-line method of depreciation, each year the item depreciates by 1/nth of its original value.With the double-declining-balance method of depreciation, each year the item depreciates by 2/nths of its value at the beginning of that year.(In the final year, it is depreciated by its value at the beginning of the year.)Write a Visual Basic program that performs the following tasks:
1. Request a description of the item, the year of the purchase, the cost of the item, the number of years to be depreciated (estimated life), and the method of depreciation.The method of depreciation should be chosen by clicking on one of two buttons.
2. Using the formulas below, calculate the amount of depreciation per year given the values entered by the user.You may assume a salvage value of $0.00 and a January 1 date of purchase for the year entered.Display a year-by-year description of the depreciation. See the diagram below.
Cost – Salvage Value= Depreciation amount per year
Estimated life in years
Using the entries in the diagram below:
1000 – 0 = $250 per year to be depreciated
Double the straight-line rate and multiple the result times the remaining balance
for every year until the last year of useful life.
For example, assume that using illustration of the straight-line method above
results in 25% depreciation per year.
1 / 4 years = 25%
The double-declining balance method results in 50% depreciation per year (twice
the straight-line rate).
Depreciation Year #1:
Initial cost year #1 = $1,000
Amount of depreciation = $500 (which is 50% x $1,000)
The balance to be depreciated over the next 3 years is $500 ($1,000 initial
cost – $500 depreciation in year 1)
Depreciation Year #2:
Remaining cost to depreciate $500
Amount of depreciation = $250 (which is 50%x $500)
The balance to be depreciated over the next 2 years is $250 ( $500 – 250)
Depreciation Year #3:
Remaining cost to depreciate $250
Amount of depreciation = $125 (which is 50%x $250)
The balance to be depreciated over the next 2 years is $125 ( $250 – 125)
Depreciation Year #4:
Remaining cost to depreciate $125
Since this is the last year of depreciation, the remaining $125 is
3. Note that in your output, you must indicate the remaining balance of the item at the beginning of the year,followed by the amount of depreciation to be taken during the year, and finally followed by the totalamount of accumulated depreciation on the asset since its purchase.
4. Make sure you use good software design principles, such as clearing the listbox after a user clicks a button but before new results are displayed.
The figures below show the output of a Visual Basic program that displays information about Bachelor degrees conferred in 1981 and 2006, the percentage of change, and a histogram for the 2006 data. Create this program using arrays. The program should allow a user to display any of these tables as an option and to quit as a fourth option. The first table is ordered alphabetically by field of study. The second table is ordered by decreasing percentages, and the last table is ordered by increasing number of degrees.
Note: The histogram displays one asterisk for every 10,000 degrees conferred.
Create and Maintain Telephone Directories
Write a Visual Basic program to create and maintain telephone directories. Each telephone directory should be contained in a separate text file. In addition, a file named Directories.txt should hold the names of the telephone directories. At any time, names of all the telephone directories should be displayed in a list box. After a telephone directory is selected, it becomes the current phone directory. The following buttons should be available.
Design your form as depicted in the diagram below.
Dim query = From line In IO.File.ReadAllLines(fileName)
Let name = line.Split(","c)(0)
Let phoneNum = line.Split(","c)(1)
Where name <> txtName.Text
Select name & "," & phoneNum
Write a menu-driven multiform inventory program for a bookstore with data saved in a text file. Each record of the text file should consist of 5 fields—title, author, category (fiction or nonfiction), wholesale price, and number in stock. At any time, the program should display the titles of the books in stock in a listbox. The user should have the option of displaying either all titles or just those in one of the two categories. The user should be able to add a new book, delete a book, or alter any of the fields of a book in stock. The adding and editing processes use the second form, frmDetails. At any time, the user should be able to calculate the total value of all books, or the total value of the books in either category. The menu item File contains the two second-level menu items Save and Exit. The menu items Display and Values each contain the three second-level menu items All, Fiction, and Nonfiction. (Note: Store the data about the books in an array of structures.)
This is the text file Books.txt
A Tale of Two Cities,Dickens,F,100,8.24
Hang a Thousand Trees with Ribbons,Rinaldi,F,30,16.79
Each Little Bird that Sings,Wiles,F,10,7.70
Abiding in Christ,Murray,N,3,12.20
Bible Prophecy,Lahaye and Hindson,N,5,14.95 Captivating,Eldredge,N,12,16
Growing Deep in the Christian Life,Swindoll,N,11,19.95
Prayers that Heal the Heart,Virkler,N,4,12.00
Grow in Grace,Ferguson,N,3,11.95
The Good and Beautiful God,Smith,N,7,11.75
Victory Over the Darkness,Anderson,N,12,16
The database Microland.accdb is maintained by the Microland Computer Warehouse, a mail-order computer-supply company. The tables below show data in the three tables in the database. The table Customers identifies each customer by an ID number and gives, in addition to the name and address, the total amount of purchases during the current year prior to today. The table Inventory identifies each product in stock by an ID number and gives, in addition to its description and price (per unit), the quantity in stock at the beginning of the day. The table Orders gives the orders received today. Assume that it is now the end of the day. Write a Visual Basic program that uses the three tables to do the following two tasks:
Design your form based on the diagram below.
The database that contains the tables for this assignment is contained within your Instructions folder and should be placed in your project’s bin\debug folder.
Below are the data that are contained in the tables in the database.
(Note: you do not have to reproduce these tables in your Visual Basic program. You should only create the screens shown above.)
Hints – the hints below are for the “Out of Stock” button function and will hopefully give you some clues as to how you can accomplish the other button’s work.
Write a Visual Basic program to implement the cash register in the diagram below. The program should have a class called CashRegister that keeps track of the balance and allows deposits and withdrawals. The class should not permit a negative balance. If the user tries to subtract a number that would result in a negative balance, the system should produce a messagebox indicating that the transaction would result in a negative balance, which is not permitted.
Here is compelete solution for BMIS 208 course - Visual Basic Programming
My solution contain Visual Basic projects for All weeks and All assignments.
Please using Visual Studio to open this project.
If you have more question or need help, please contact me via email email@example.com. I will help you any time.