Computer Science Homework Solutions

Visual Basic Array sorting and finding values

I have a multi-dimensional array that needs to have the following questions answered each by a separate button and sub or function procedure. The array is Dim Kidsinsports(10,3) " schools + sports" e.g. School 1 has 10 kids in football, 10 in basketball and 10 in volleyball. Sports are organized by (Football, Basketball, V ...continues

Visual Basic and CSV file

A CSV file contains a customer's name, zipcode and amount of a sale output total sales per customer (combine double entries), total sales for each zip code, and the total for each store. Input file attached: Output: Customer 1 Customer 2 Customer 3 Customer 4 Customer 5 Total sales for 60602 Total sales fo ...continues

For this assignment, you will create a Visual Basic.NET application to extend IP2 into a more complete music collection manager. In this exercise, you will create a solution that works with two tables having a Master/Detail relationship. The first table contains music category records, and the second table contains album detail records for each category.

For this project you will use the following database schema, which has two tables. Table 1 -- Schema for the tblCategories table Column Name Data Type ldCategoryID Integer fldCategoryDesc String Table 2 -- Schema for table named tblAlbums Column Name Data Type fldAlbumID Integer fldCategoryI ...continues

Visual C++

Write a C++ value returning function that implements the recursive formula F(n) = F(n-1) + F(n+2) with base cases F(0)=1 and F(1) =1

Visual C++ program

Write a C++ program to output the binary (base-2) representation of a decimal integer. The algorithm for this conversion is to be repeated dividing the decimal number by 2 until it is 0. Each division produces a remainder of 0 or 1 which becomes a digit in the binary numbers. example the decimal number 25 25/2 = 12 rema ...continues

Visual C++ Classes

Write a program that read in an integer. If the integer is a negative number, catch the exception and print an error message "Invalid Integer: value negative" and prompt the user for another number. If the integer is zero, catch the exception and print a message, "Integer cannot be zero, and end the program. Otherwise, just pri ...continues

Visual C++

Give the class declaration class point { public: int xcoordinate(); int ycoordinate(); point(in initializeX, in initialize Y); private: int x; int y; }; 1: Suppose we have a type declaration as follows: enum status {on, off}; declare a class Pixel that inherits from class Point. Class Pixel will have an ad ...continues

Visual C++

The following class uses composition to define a line object in terms of two point objects. class line { public: Point startingpoint(); point endingpoint(); float length(); line (int startX, int startY, int endX, int endY); private: point startPoint; point endPoint: }; 1) write a fucntin defintion for the Lin ...continues

C++ problem

Write a program, employe_data.cpp, with the Employee class that has two employees; sets their age, yearsOfService, and salary (rounded to the nearest thousands of dollars; and prints their values. (you will need to write the code in member functions.) And, Change the Employee class such that you can initialize age, yearsOfSer ...continues

C++ Problem

Program that does the following: delcale an integer (var1) declare a pointer (ptr1) that points to var1 declare a reference (ref1) to var1 assign the address of var1 to ptr1 print the value of var1 using the pointer use the ref1 to change the value of var1 to var15 print the value of var1 using the ref1

Browse