Questions: 1 362

Answers by our Experts: 1 362

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Hi

i can download ftp files from C# but it downloads the current date file.
but i need to download the files from previous date to current date .
for example: my files are

xys04-02-2011.zip
xys04-03-2011.zip
xys04-04-2011.zip

i am trying the following code

string dateString = DateTime.Now.ToString("MM-dd-yyyy");
string filename = string.Format("xys{0}.zip", dateString);
string localPath = "c:\\";
string fileName = filename;
string defaultLocalFolder_MCX = "C:\\";



FastZip fzMCX = new FastZip();

try
{


fzMCX.ExtractZip(defaultLocalFolder_MCX + "\\" + "xys03-31-2011.zip", defaultLocalFolder_MCX, "");

}

catch (Exception)
{
//

}


FtpWebRequest requestFileDownload = (FtpWebRequest)WebRequest.Create("ftp://localhost/Source/" + fileName);
requestFileDown
Part 1:
Write a program that prompts the user for three numbers;
a) The number of random numbers to generate
b) The lowest number in the desired range
c) The highest number in the desired range
Your program will then create an array of the appropriate size, and fill it with random numbers in the desired range.
Print out the array.
Write a loop to calculate the sum of the array. Print out the sum and the average value.
Write another loop to print out every other value.

Part 2:
After the array is filled, write a loop to calculate
__ The sum of the even numbers in the array
__ The sum of all the numbers in the array that are less than the average value
__ The product of every third element

Part 3:
Add a user entry loop at the end of the program that asks the user for a number, and then prints the number that is stored at that location in the array. Also print the square and the square root of the number. The user entry loop should end when the user types “Exit” (case insensitive).
Create a class name Taxpayer. Data fields for taxpayer objects include the Social Security number (use a string for the type, but do not use dashes within the number), the yearly gross income, and the tax owed. Include a property with get and set accessors for the first two data fields, but make the tax owed a read-only property. The tax should be calculated whenever the income is set. Assume the tax is 15% of income for incomes under $30,000 and 28% for incomes that are $30,000 or higher. Write a program that declares an array of ten Taxpayer objects. Prompt the user for data for each object and display the ten objects. Save the program as TaxPayerDemo.cs
I want to write a code using the fibonacci series. When a user inserts a number it should give the numbers in between the sequence along with an option to conitinue or quit.
I was asked to write a complete Statistics class to calculate common sample statistics values given three numbers. The class should calculate the mean(average), the sum, the minimum, and the maximum of three numbers.Two Constructors are needed, the default constructor and another contructor to initialize the three numbers.Methods are needed to get the mean, sum,minimum and maximum values. From Main() method, objects are to be created and statistics class is to be tested using both contructors. Pls help. Tks
Want to write a C# progm creating a Rectangle class to have two variables length and width. Two constructors are needed, the default constructor should intialize length and width to 1.0 each. The second must pass in two values to initialize length and width. There must be six methods to do the following: SetLength,SetWidth,GetLength,GetWidth, GetArea, and GetPerimeter.The perimeter is the sum of all sides of a rectangle. Three instances of the Rectangle needs to be created. The first rectOne must use the se
New question for you. Same as before, need in visual studio and zip files. Thanks in advance!

Write a program to compute the power loss in a transmission line with a resistance of 0.05 ohms/mile. Compute the power loss if 500kw of power is transmitted from a power generating station to cities at distances of 20, 30, 40, 50, 60, 70, 80, 90, 100 miles at 100 V and 200 V. The current (i) is calculated from: i = power transmitted in watts / volts transmitted

power transmitted in watts
i = --------------------------------
volts transmitted

The total resistance R is computed from the equation: R = r x miles

where r is the resistance per mile. The power loss is computed from the equation: Power loss = i2(squared) x R.

Display to console and pause the program.
I have a function which send a serial message to an usb device. The device answers back with a value (say122.22) this value must be the return value of that function.

public double aksingFunction()
{
sendQuestionSerial();
return receivedSerialAnswer();
}
I want to make a project in C#.Net so i just want the idea what i make it should be some thing different
Hi,

I created a data file, which seems to work perfectly, but as far as reading it into an array is where I get stuck. It should be 20 random #s 1 to 99 read into this array in a single line. In my data file, they are all on separate lines, but I need it to read to the console on a single line so that I'll be able to quicksort and bubblesort them later. Please any help would be appreciated.
LATEST TUTORIALS
APPROVED BY CLIENTS