VB/C#

Need Help in Visual Basic and C# Assignments?
We can help you if you are having difficulty with your Visual Basic Assignment. Just email your assignments at support@assignmentcache.com.
We provide help for students all over the world.

Items 11 to 20 of 181 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction
  1. CIS 170 Week 3 iLab 3 DIVE Scoring Program

    CIS 170 Week 3 iLab 3 of 7 Looping DIVE Scoring Program

    Regular Price: $15.00

    Special Price: $12.00

    CIS 170 Week 3 iLab 3 of 7 Looping DIVE Scoring Program


    DIVE Scoring Program
    Your mission: The state diving commission wants to computerize the scoring at its diving competitions. You've been hired to write a program to automate the scoring of dives. Following are the requirements for the program.
    After each dive, the user will be prompted to enter the:
    diver's name
    diver's city
    degree of difficulty (ranges from 1.00 to 1.67); and scores from five judges (scores can range from 0 to 10).
    If an invalid score is entered, an error message will be displayed. The user will be prompted for the score repeatedly until a valid score is entered.
    The program will then display the following information:
    Diver's name
    Diver's city
    Dive final score: This is calculated by dropping the highest and lowest of the five judges' scores. The remaining three scores are added together, and the result is divided by 3 and then multiplied by the degree of difficulty.
    The program will then prompt the user if she/he wants to process another dive. The user can type "Y" or "y" to continue, and "N" or "n" to quit.
    Sample output:
    Diver's name: Sue Jones
    Diver's city: Dallas
    Dive degree of difficulty: 1.9
    Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)
    Dive degree of difficulty: 2
    Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)
    Dive degree of difficulty: 1.2
    Judge #1 score: 45
    Invalid score - Please reenter (Valid Range: 0 - 10)
    Judge #1 score: 3
    Judge #2 score: 4.5
    Judge #3 score 6.7
    Judge #4 score 89
    Invalid score - Please reenter (Valid Range: 0 - 10)
    Judge #4 score 8
    Judge #5 score: 9.2
    Diver: Sue Jones
    City: Dallas
    Dive score: 7.68
    Do you want to process another dive (Y/N)? y
    Diver's name: Dave Smith
    Diver's city: Houston
    Dive degree of difficulty: 1.1
    Judge #1 score: 5.7
    Judge #2 score: 6.8
    Judge #3 score:: 7.6
    Judge #4 score: 8.7
    Judge #5 score: 6.7
    Diver: Dave Smith
    City: Houston
    Dive score: 7.74
    Do you want to process another diver (Y/N)? N


    Tips
    Best practice: Note that a good way to implement the code is to write a first version for only a single dive without validating input. Put yourself in the place of the program. What steps would you personally need to perform in order to process a single dive yourself? Write out those steps on paper as pseudocode and/or in Visual Studio as C# comments, and then implement them one by one, testing as you go. After you have a single dive process working, implement one of the input validations, or the outer loop that repeats the whole process. Whichever you choose, remember to not write too much at one time. Always add and test functionality incrementally!
    Pseudocode: Although there are several valid ways to write the program, the following is an outline of one way to design the overall logic.
    Declare and initialize variables: name, city, judge score, highest score, lowest score, total score
    Loop while there are dives to process
    Get diver's name and city
    Get degree of difficulty
    Loop to validate input
    End Loop
    Loop five times to get judges' scores
    Loop to Validate input
    End Loop
    Update highest and lowest scores if need be
    Add score to total score
    End Loop Calculate the final score (subtract highest and lowest scores from total score, divide by 3, multiply by degree of difficulty) Display the diver's information and final dive score Prompt the user if he or she wants to process another dive
    End-Loop

    Learn More
  2. CIS 170 Week 4 iLab 4 Phone Dialing Program

    CIS 170 Week 4 iLab 4 of 7 Methods Phone Dialing Program

    Regular Price: $15.00

    Special Price: $12.00

    CIS 170 Week 4 iLab 4 of 7 Methods Phone Dialing Program


    Scenario/Summary
    You will code, build, and execute a program that simulates the dialing of a phone using methods.


    Phone Dialing Program
    Your mission: A prepaid phone service needs a program that converts alphanumeric keyboard input into a phone number. The user will input eight characters and the program will output either an error message or the translated seven-digit phone number. The input may contain digits, letters, or both. Letters can be uppercase or lowercase.
    The program will perform the conversion per a standard telephone keypad layout.
    0
    1
    2
    A B C
    3
    D E F
    4
    G H I
    5
    J K L
    6
    M N O
    7
    P Q R S
    8
    T U V
    9
    W X Y Z


    The program implements the following methods.
    Main(): Declares seven character variables and passes these to the following methods by reference:
    ProcessInput(): gets user input and performs the conversion
    ShowResults(): displays the results
    GetInput(): Gets seven characters from the user and stores them into the seven variables Main() has passed by reference.
    ProcessInput(): Calls ToDigit() for each, passing each character variable by reference, and returns one of these codes to Main() by value:
    0 if there were no input errors
    -1 if there were input errors


    Input errors include the following:
    The first character is 0 (seven-digit phone numbers can't start with 0).
    The first three characters are "555" (no phone numbers start with 555).
    Any character is not a digit or an uppercase or lowercase letter.
    ToDigit(): Converts a character (passed by reference) to its corresponding digit per the table above, and returns one of these codes to ProcessInput() by value:
    0 if the character is valid (a digit or uppercase or lowercase letter)
    -1 if the character is not valid
    ShowResults(): Writes converted telephone number to the screen, inserting a dash (-) between the third and fourth digits, and accepts the seven character variables from Main() by reference.


    Sample Output:
    Enter a 7 character phone number: 2132121
    The converted phone number is: 213-2121
    Enter a 7 character phone number: 2scdfER
    The converted phone number is: 272-3337
    Enter a 7 character phone number: 555resw
    Invalid input, please try again.
    Enter a 7 character phone number: 0988765
    Invalid input, please try again.
    Enter a 7 character phone number: 12345678
    Invalid input, please try again.
    Enter a 7 character phone number: @34*uy
    Invalid input, please try again.


    Tips
    Best practice: Don't try to write too much at a time! First, write an outline in comments based on the requirements and the pseudocode. Then, implement declaring seven char variables. Make sure to fix any compiler errors before implementing more. Then, write and call an empty GetInput() method that accepts parameters, but does nothing but return a dummy value. Make sure you can pass the seven character variables by reference without compiler errors before implementing any of the GetInput() logic. Keep working incrementally like this, testing as you go. Set breakpoints and use the debugger at each phase to make sure your logic is working correctly. Then, use the same approach to implement the other methods. Test each phase with valid input before handling any invalid conditions.


    Pseudocode
    ProcessInput( ) Method
    Get 7 characters from the user and store them in the 7 variables that Main() has passed by reference
    Call ToDigit() for each of the 7 characters
    If toDigit returns an error code (-1), return an error code (-1)
    If the first character is 0, return an error code (-1) to Main()
    If the first three characters are 555, return an error code (-1)
    If there are no errors, return 0
    ToDigit ( ) Method
    Convert the characters (passed from ProcessInput() by reference) to upper case
    Use a switch statement to translate characters into their corresponding digits.
    Write a case statement for each digit and for each valid uppercase letter
    Write a default case that returns an error code (-1) for invalid letters
    If there are no invalid letters, return 0
    ShowResults ( ) Method
    Display the Phone Number using the character variables Main() has passed by reference
    Main() Method
    Declare 7 char variables
    Get user input by calling the GetInput() method, passing it the 7 variables by reference
    Perform the conversion by calling the ProcessInput( ) method, passing it the 7 variables by reference
    Display an error message or call ShowResults(), depending on the code ProcessInput() returns


    END OF LAB

    Learn More
  3. CIS 170 Week 6 iLab 6 Part A Password Program

    CIS 170 Week 6 iLab 6 of 7 Menu-Driven Applications (GUI)

    Regular Price: $15.00

    Special Price: $12.00

    CIS 170 Week 6 iLab 6 of 7 Menu-Driven Applications (GUI)


    Scenario/Summary
    You will code, build, and execute two programs requiring GUI. The first program will ask the user to input a password and then reenter it for verification. The second program is a number guessing game that generates a random number and asks the user to input his or her guess.


    Part A: Password Program
    Requirements
    Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either that the passwords match or that they don’t match.


    Sample output:
    I type in Bob in the password field and click Next.
    I type in Bob in the second password field and click Continue.
    Message displayed if the passwords match:
    Message displayed if the passwords are different:


    Tips
    Best practice: First make sure to read through this week’s lecture and try it yourself! Then, you’ll be in good shape for this exercise.
    Pseudocode:
    Next Button Event Handler Method
    If the first password textbox is not blank
    Make visible the second password textbox, the Done button, and the labels
    Else
    Put “You must enter a password” in the label
    End-If
    Done Button Event Handler Method
    If the first password text box is not empty
    If the first password text box equals the second password textbox
    Display the message “Passwords are the same”
    Else
    Display the message “Passwords are different”
    End-If
    Else
    Display the message “You must enter a password”
    End-If
    END OF PART A


    Part B: Number Guessing Game
    Requirements
    Write a Windows application that randomly generates a number from 0 through 100. Prompt the user to guess the number. Let the user know if the guess is too low, too high, or is the correct number. Give the user another chance to guess the number. The user keeps guessing until he or she gets it correct.


    Sample output:
    I entered a number and pressed the button.
    I pressed the button and the box and message are cleared.
    I entered a number and pressed the button.
    After entering several numbers, I got the following:
    The following message is displayed when the guess is right.


    Tips
    Pseudocode: Form constructor method
    Randomly pick a target number between 0 and 100
    Evaluate Button Click Event Handler Method
    If the guess text box is not blank
    Pull the guess from the text box
    Add 1 to the number of guesses
    If the guess is less than the target
    Make the Evaluate button invisible
    Change the label message to “Too Low!!”
    Make the label message visible
    Change the background color of the form to LightSeaGreen
    Make the Try Again button visible
    Else if the guess is greater than the target
    Make the Evaluate button invisible
    Change the label message to “Too High!!”
    Make the label message visible
    Change the background color of the form to SlateBlue
    Make the Try Again button visible
    Else
    Display a message indicating the user guessed correctly and display the number of guesses it took.
    End-If
    End-If
    Try Again Button Click Event handler
    Clear the guess text box
    Make the label message and Try Again buttons invisible
    Make the Evaluate button visible
    END OF PART B


    END OF LAB

    Learn More
  4. BMIS 208 Programming Assignment 2 Automobile Repair Shop

    BMIS 208 Programming Assignment 2 Automobile Repair Shop

    Regular Price: $15.00

    Special Price: $12.00

    BMIS 208 Programming Assignment 2 Automobile Repair Shop


    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 3 costs should be displayed in a list box as shown below.
    1. Name your application Assignment_2.
    2. Name the form frmAssignment_2. The title should be as depicted below.
    3. Name the labels lblCustomer, lblPhone, lblHours, and lblParts.
    4. Name the textboxes txtCustomer, txtHours, and txtParts.
    5. Name the listbox lstBill.
    6. The Customer phone textbox should be a MaskedTextBox and should allow inputs only in the form of ___-____ (3 characters, followed by a dash, followed by 4 characters). Name this MaskedTextBox mtbPhone. Show the underlines and dash in the mask.
    7. If the user leaves the Customer, Hours, or Parts textboxes blank, produce an error message (using a MessageBox) that informs the user to enter the appropriate information and do not display the information in the listbox.
    8. Create variables to hold the customer, phone, hours, and parts information. Name the variables customer, phone, hours, and parts. Their data types should be string, string, double, and double, respectively.
    9. When the user clicks the Display Bill button, prompt the user to enter in the date of the services. Store this information in a variable called service_date. Display this date and the date the invoice is due (30 days from the date entered) in the listbox as shown below. [Hint: use the AddDays function]. Store the due date in a variable called due_date.
    10. Convert the customer name variable to upper case before displaying it in the listbox.
    11. Whenever the user clicks the Display Bill button, the listbox should be cleared before displaying the new results.
    12. To calculate the amounts, create three variables (labor_cost, parts_cost, and total_cost), and display these amounts in the listbox as shown below.
    13. Be sure to use currency format where appropriate.
    14. Be sure that the columns line up appropriately. [Hint: you can use the built-in Visual Basic constant “vbTab” to create neat columns in your listbox.]


    This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 2.

    Learn More
  5. Clearly Visual Basic 2010 Chapter 7 Cable Direct Application

    Clearly Visual Basic 2010 Chapter 7 Cable Direct Application

    Regular Price: $15.00

    Special Price: $12.00

    Clearly Visual Basic 2010 Chapter 7 Cable Direct Application


    Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Cable Direct Solution, Cable Direct Project, and Main Form.vb. Save the application in the VB2010\Chap07 folder. Create the interface shown in Figure 7-39. The list boxes are named lstPremium and lstConnections. Display numbers from 0 through 20 in the lstPremium control. Display numbers from 0 through 100 in the lstConnections control. The Calculate Total Due button’s Click event procedure should calculate and display a customer’s cable bill. The cable rates are shown in Figure 7-40. Business customers must have at least one connection. Use two functions: one to calculate and return the total due for business customers, and the other to calculate and return the total due for residential customers. The form’s FormClosing event procedure should verify that the user wants to close the application. Code the application. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

    Learn More
  6. Clearly Visual Basic 2010 Chapter 10 Exercise 8 WKRK Solution

    Clearly Visual Basic 2010 Chapter 10 Exercise 8 WKRK Solution

    Regular Price: $15.00

    Special Price: $12.00

    Clearly Visual Basic 2010 Chapter 10 Exercise 8 WKRK Solution


    Each year, WKRK-Radio polls its audience to determine the best Super Bowl commercial. Th e choices are as follows: Budweiser, FedEx, E*Trade, and Pepsi. The station manager wants an application that allows him to enter a caller’s choice. The choice should be saved in a sequential access file. The application also should display the number of votes for each commercial. Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: WKRK Solution, WKRK Project, and Main Form.vb. Create the interface shown in Figure 10-45, and then code the application. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

    Learn More
  7. Clearly Visual Basic 2010 Chapter 10 Exercise 9 Carlton Solution

    Clearly Visual Basic 2010 Chapter 10 Exercise 9 Carlton Solution

    Regular Price: $15.00

    Special Price: $12.00

    Clearly Visual Basic 2010 Chapter 10 Exercise 9 Carlton Solution


    Carlton Industries stores the item numbers and prices of the items it sells in a sequential access file named ItemInfo.txt. The company's sales manager wants an application that displays the price corresponding to the item selected in a list box.


    a. Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Carlton Solution, Carlton Project, and Main Form.vb. Create the interface shown in Figure 10-46.


    b. Use Windows to copy the ItemInfo.txt file from the VB2010\Chap 10 folder to the project's bin\Debug folder. Open the Code Editor window and then open the ItemInfo.txt file contained in the project's bin\Debug folder. Each line contains an item's number followed by a comma and the price. Close the ItemInfo.txt window.


    c. Define a structure named item. The structure should contain two member variables: a String variable to store the item number and a Decimal variable to store the price.


    d. Declare a class-level array that contains five Item structure variables.


    e. Code the form's Load event procedure so that it reads the item numbers and prices from the ItemInfo.txt file. The procedure should store the item numbers and prices in the class-level array. It also should add the item numbers to the list box.


    f. When the user selects an item in the list box, the item?s price should appear in the lblPrice control. Code the appropriate procedure.


    g. Save the solution and then start and test the application. Close the Code Editor window and then close the solution.

    Learn More
  8. BMIS 208 Assignment 9 Bills for all Customers

    BMIS 208 Programming Assignment 9 Microland Computer Warehouse

    Regular Price: $20.00

    Special Price: $15.00

    BMIS 208 Programming Assignment 9 Microland Computer Warehouse


    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:
    1. Display in a listbox the items that are out of stock and those that must be reordered to satisfy today’s orders.
    2. Display in a listbox bills for all customers who ordered during the day. Each bill should show the customer’s name, address, items ordered (with costs), and total cost of the order.


    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.)


    This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 6.
    Adapted from Schneider, D. I. (2010). Introduction to Programming Using Visual Basic 2010 (8th ed.).


    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.
    1. Create a query1 from the order table to get the itemIDs ordered. You will want to order your query by itemID and use Distinct to eliminate duplicate itemIDs.
    2. Use a for-each loop to go through query1 once per itemID. For each loop you want to do the following:
    a. Create a query2 using the order table Where the itemID in the order table equals the itemID from query1. The purpose of this query is to get the quantities ordered for each itemID.
    b. Use a for-each loop and a variable (let’s call it intTotalOrdered) to iterate through query2 and sum up the quantities ordered for each itemID.
    c. Create a query3 using the inventory table and select those records Where the intTotalOrdered is equal to or greater than the quantity on hand – these are the records that will need to be reordered. Use a Let statement with quantity on hand and intTotalOrdered to determine the reorder quantity. Select the itemID, reorder quantity, and item description.
    d. Print out itemID, reorder quantity, and item description to your list box. Use Math.Abs() on your reorder quantity to convert negative numbers to positive ones.

    Learn More
  9. BMIS 208 Programming Assignment 10 Cash Register

    BMIS 208 Programming Assignment 10 Cash Register

    Regular Price: $20.00

    Special Price: $15.00

    BMIS 208 Programming Assignment 10 Cash Register


    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.


    This assignment is due by 11:59 p.m. (ET) on Monday of Module/Week 7.
    Adapted from Schneider, D. I. (2010). Introduction to Programming Using Visual Basic 2010 (8th ed.).

    Learn More
  10. BMIS 208 Course Project Timekeeping Payroll system for CMS

    BMIS 208 Course Project Timekeeping Payroll system for CMS

    Regular Price: $20.00

    Special Price: $15.00

    BMIS 208 Course Project Timekeeping Payroll system for CMS


    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 1 contract 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 supervisor is currently required to approve his/her employees’ timesheets by placing his/her initials beside his/her name.


    Deliverable:
    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 7 days 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/her overtime 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. An example payroll calculation is shown below:


    Payroll information for John Doe for the week ending Week 1:
    Total Hours Worked: 42.00
    Regular Hours Worked: 40.00
    Rate per regular work hour: $15.00
    Regular Hourly Pay: $600.00
    OverTime Hours Worked: 2.00
    Rate per overtime work hour: $22.50
    Overtime Hourly Pay: $45.00
    Gross Pay: $645.00
    Number of Weekend/Holiday/Vacation days claimed: 2

    Learn More

Items 11 to 20 of 181 total

per page
Page:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Grid  List 

Set Descending Direction