Discount Get BMIS 208 ALL WEEKS Solution ONLY $154.37 $233.89
BMIS 208 Assignment 1 Week 1 - NEW VERSION - Create a Visual Basi... [$15.99]
BMIS 208 Assignment 2 Week 2 - NEW VERSION - Create a Visual Basi... [$19.99]
BMIS 208 Assignment 3 Week 2 - Create a Visual Basic program to a... [$19.99]
BMIS 208 Assignment 5 Week 3 - NEW VERSION - Depreciation using S... [$19.99]
BMIS 208 Assignment 4 Week 3 - NEW VERSION - A furniture manufact... [$19.99]
BMIS 208 Assignment 5: Caffeine Absorption - Write a program to c... [$19.99]
BMIS 208 Assignment 6 Week 4 - NEW VERSION - you will create a Vi... [$19.99]
BMIS 208 Assignment 7 Week 5 - NEW VERSION - you are to design an... [$19.99]
BMIS 208 Assignment 8 Week 6 - NEW VERSION - Write a menu-driven ... [$25.99]
BMIS 208 Assignment 9 Week 7 - NEW VERSION - The database Microla... [$25.99]
BMIS 208 Assignment 10 Week 8 - NEW VERSION - Write a Visual Basi... [$15.99]
BMIS 208 Course Project - NEW VERSION - CMS Systems, Inc. is a co... [$29.99]
BMIS 208 Final Class Project - Grading System [$35.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
BMIS208 BMIS/208 BMIS 208 - Programming Assignment 7 - Week 5 - NEWEST VERSION - you are to design an inventory management program for a car dealership that specializes in one-of-a-kind automobiles
    BMIS208 BMIS/208 BMIS 208 - Programming Assignment 7 - Week 5 - NEWEST VERSION - you are to design an inventory management program for a car dealership that specializes in one-of-a-kind automobiles

BMIS208 BMIS/208 BMIS 208 - Programming Assignment 7 - Week 5 - NEWEST VERSION - you are to design an inventory management program for a car dealership that specializes in one-of-a-kind automobiles

$19.99

Maintain Inventory

In this assignment, you are to design an inventory management program for a car dealership that specializes in one-of-a-kind automobiles.  All of the automobiles currently in stock are listed in the text file, “AutosInStock.txt”.  When an automobile is sold, your program should move it from the “AutosInStock” textfile into another textfile “AutosSold” textfile.  If the AutosSold textfile doesn’t not already exist (and it doesn’t the first time your application is run), your program should create it.  Further, when a customer fails to make payments on an automobile that they have purchased from the dealership, the automobile is repossessed and re-entered into stock.  Therefore, your program should move any repossessed automobile from the AutosSold text file back into the AutosInStock text file.  The contents of the two text files should be displayed in listboxes when the application starts.  Clicking a “Sell Auto” button removes the car from the AutosInStock listbox AND text file into the AutosSold listbox AND text file.  After each “move”, the listboxes should be refreshed.  A quit button should be included to exit the application.

 

Design your form as depicted in the diagram below.

 

Helpful hints:

1.      The text files needed for this assignment should be placed in the bin\debug folder of the project.  Note that you will not have a text file for AutosInStock.  Your program should create it when it doesn’t already exist.

2.      When the form opens, populate the Autos in stock listbox with the names of the cars listed in the AutosInStock text file and populate the Autos Sold listbox with the cars listed in the AutosSold text file.

3.      Do NOT use arrays to populate the listboxes, but instead, use LINQ queries that read directly from the text files.

4.      Use the StreamWriter in conjunction with IO.File.AppendText and IO.File.CreateText to append new directories and create new text files. (Note: You will need to use the WriteLine method to write the name of the new file to each text file.)

5.      To display the contents of the directories file, use a LINQ query.  Loop over all of the items in the query using a For each statement to populate the listbox.

6.      Before displaying the contents of the AutosInStock and AutosSold files, make sure the files exist first.  You will need to use the IO.File.Exists method in your checks.

7.      Use good programming practices by clearing the listboxes before refreshing them when a change is made that affects their contents.

8.      Remember to close the files after accessing them.

9.      To remove a listing from a directory, you may find this code helpful as it selects only those records in the file that are not the one the user wants to remove.  The code should then write the results of this query back to the file:

    Private Sub RemoveFromFile(ByVal filename As String, ByVal item As String)

        Dim query = From auto In IO.File.ReadAllLines(filename)

                 Where auto <> item

                 Select auto

        IO.File.WriteAllLines(fileName, query.ToArray)

    End Sub

10.  Include appropriate error checking (i.e. check to make sure something has been selected in one of the listboxes before trying to move it to the other listbox.)

11.  Use appropriate naming conventions for all controls and variables.  Make sure the form has a title.  Include appropriate internal documentation (i.e. comments in your code).

My tutorial contains Visual Basic Project (using Visual Studio).

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B