Computer Science Homework Solutions

Your First Visual Basic Program

Practice defining variables and writing assignment statements. For each problem, write the VB statements to accomplish the specified task.

Unions and Records

1) (50 points) In C, create a union and struct (record) declaration. Using the size of() and address-of (&) capabilities of C, write a program to measure the size of each data structure, and the offset and width of each member and any padding within each data structure. Turn in the C code, and a descriptor in the form of an ta ...continues

Will you be able to write a 3-6 page paper on programming language "Perl"?

The objective of this assignment is to report on the features behind the design of a programming language. (Perl) Scripting language with extensive report generating facilities. The report should follow standard formatting for technical reports. This includes a cover page, an introduction, a background section, as many sections ...continues

C+ ansi programing

looking for A program that has a declaration in main() to store the following numbers into an array named rates 4.3,5.5,3.2,8.8. There should be a function call to show () that accepts rates in a parameter named rates and then displays the numbers using the pointer notation *(rates + i)

Creating an Addition Tutor in Visual Basic

In Visual Basic the form needs to contain one command button that should present a new addition problem and one should allow the user to quit. There should be a text box to present the question and accept the answer and another to tell the user whether her answer was correct. End program with the quit button. After that is worki ...continues

c++ cin.ignore function simple question

I wrote the following c++ code to a source file /this program will calculate federal and fica taxes withheld and calculate net pay //for an employee #include #include #include using namespace std; //function prototypes void empInput(string&, float&, float&, float&); float calcFwt(f ...continues

Java program

Hello! I am trying to write a program in Java that will be able to recognise the contour of an image. An image is a two-dimentional table of boolean values (true=black, false=white), and the contour is the list of points which form the outer edge of the image. Two files are attached. The first is my class Image, and the se ...continues

C++ code

i am having a difficult time getting started generating a C++ code for this function. char *ism_repallfile(const char *szin, const char *sztarget, const char *str, const char *sub) This is what the code is supposed to do: Takes a text file, szin opens it in line_by_line. For each line, it replaces any occurrences of str wi ...continues

Write a highly configurable shell script to find the number of files that have been modified X days ago, where X can be changed by the user to any value.

Problem 2 File "Ageing" Shell Script A) Write a shell script that will count the number of files in your account hat were last modified 5 or more days ago. When you run the shell script, the results should look something like this: % ageing there are 19 files modified 5 or more days ago. % B) Modify your scrip ...continues

C+ programming

useing a loop and switch statement. In this program, you will keep track of the number of votes for each color of m&m's candy. The user will be able to vote until he types the sentinal character 9. Display the menu and ask the user to enter a number. Check the number entered aginst the display numbers 1-2-3-4-5-6. If the number ...continues

Browse