Create a Visual Basic form like the one below that allows the user to press buttons to change the background and foreground colors of the textbox. Your form should have 4 buttons, 2 labels, and 1 textbox.
1. Name the form frmAssignment_1 and put Assignment #1 in its title bar.
2. Name the buttons btnBlue, btnYellow, btnRed, and btnGreen. The captions on the labels should be Blue, Yellow, Red, and Green, respectively. The tab order of the buttons should be Blue, Yellow, Red, and Green. Create access keys for the buttons with the “B” underlined on the Blue button, the “Y” underlined on the Yellow button, the “R” underlined on the Red button, and the “G” underlined on the Green button.
3. Name the textbox txtVerse and enter into it the Bible verse from John 3:16 as depicted below. The form should open with this textbox having the focus. The font of the textbox should be Script MT Bold, size 12, style Bold.
4. Name the labels lblBackground and lblForeground. The text of the labels should be Background and Foreground, respectively. The font of the labels should be Times New Roman, size 12, Bold.
5. When the user clicks the Blue button, the background of the textbox should become blue (use Color.Blue).
6. When the user clicks the Yellow button, the background of the textbox should become yellow (use Color.Yellow).
7. When the user clicks the Red button, the text within the textbox should become red (use Color.Red).
8. When the user clicks the Green button, the text within the textbox should become green (use Color.Green).
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.
Course Project -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
General Background Information:
CMS Systems, Inc. is a company that provides information systems consulting services to companies in the telecom industry in the United States and the United Kingdom.Due to its success, CMS is hoping to expand its operations into other parts of Europe.Despite its large size, CMS currently uses a manual/spreadsheet-based process for maintaining employee and client data.Management has now decided to implement a company-wide application that will keep track of all of its employees’ hours, calculate employee payroll, and produce invoices for clients based on hours worked by employees.
CMS currently employs 1,500 individuals (900 in the US and 600 in the UK) who serve as systems analysts, developers, managers, testers, maintenance engineers, accountants, lawyers, and sales representatives.
The company also has more than 200 clients in the US and UK.Clients can have one or more contracts with CMS to provide a variety of consulting services.For example, a single client might have 1contract for maintenance of an existing system and also have another contract (sometimes called a work order by the sales force) for the development of a new system.
All CMS employees must keep a record of the time they spend working for each client on a weekly basis.Because employees can work for more than one client and perform different functions for each client, CMS utilizes “project management” to keep track of employee assignments to client contracts.Employees can be assigned to work on more than one project at a given time.In fact, it is not unusual for an employee to spend time on two or more different projects within the same day.
Just as a client can have more than one contract with CMS, a contract can consist of more than one project.For example, a contract for the development of a new system could be fulfilled in multiple phases.Phase I could include implementation at one client site using a group of consultants in close proximity to that site.Phase II could include implementation at a different site with a potentially different set of consultants.Both of these phases are considered separate projects, even though they are governed by the same contract.
The number of hours worked for each employee on each project must be recorded on a weekly basis.Employees currently log their time using an Excel worksheet.An example of this worksheet is presented below.Notice that the employee’s supervisor is listed on the worksheet.A supervisoris currently required to approve his/her employees’ timesheets by placing his/her initials beside his/her name.
For this project, you are required to create the GUI for a timekeeping/payroll system for CMS.
The system should first allow an employee to enter his/her name and record the time he worked on each project for a given week.Using the spreadsheet above as a guideline, the system must allow the user to enter his/her name and the name of his/her supervisor.Next, the user must enter the number of the week for which he is entering time.Assume a maximum of 52 weeks in a year.Make sure the employee enters only a valid week number.
To record an employee’s hours, the user must enter the name of a client, a client’s contract and a project.For each of the 7days in a week, the user must enter hours worked or check a box that indicates the day is a weekend, a holiday, or a vacation day.If the employee fails to enter any hours for a day and fails to check the weekend/holiday/vacation box for that day, the system should warn the user that the given day is missing information.The system should also ensure that if any work hours are entered for a day, the checkbox for that day should NOT be checked.Finally, the system should ensure that a user cannot enter more than 24 hours in a single day.Once the hours are entered, the user should be able to “Submit” his/her hours by clicking a button that will calculate his/her payroll information for the week and display it on the same screen.
This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 7.
Payroll information is calculated as follows:
All employees are paid for hours worked at a rate of $15 US per hour.If the number of hours worked in the week exceeds 40, the employee is paid time and a half for his/herovertime hours.For example, assume an employee works 50 hours during a week, he will receive (40 X $15) + (10 overtime hours X (1.5 X $15)) = $825.00.If an employee works less than 40 hours in a week, the system should make note of this fact in a label beside the supervisor’s name.
Here is compelete solution for BMIS 208 course and Course Project Final BMIS208 - Visual Basic Programming
My solution contain Visual Basic projects for All weeks, All assignments and Course Project Final.
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.