How to write a c# program to sort array values in descending order?

Can anyone please help me to write this program.
Thanks in advance.

Answer: 
class Program { static void Main(string[] args) { int [] myArr = new int[5] {3,9,0,5,2}; Console.WriteLine("Unsorted:"); foreach (int i in myArr) Console.Write("{0} ", i); Console.WriteLine(); myArr = myArr.OrderByDescending(m=>m).ToArray(); Console.WriteLine("Sorted:"); foreach(int i in myArr) Console.Write("{0} ",i); Console.ReadKey(); } } Sorting is done using LINQ, so don't forget to add using System.Linq;

How to create random numbers in C programming language?

There are situations where one needs to generate random numbers...

Example-
In games like FIFA random messages are send to the manager...
Also in various other cases one needs to generate random numbers....

Suppose I have a range 3 to 1982
And I need to generate anything in that range.

Then how do i write a code in C for generating such numbers???

Please don't give me names of applications or even system defined functions...
You can also make me aware of any pre-existing logic...

I need a logic to implement........
Thank you in advance...

Answer: 
Computers don't exactly create random numbers themselves. We create pseudo-random numbers using a two step process. First we seed the random number generator. Usually using system time is a way to avoid the program delivering the same list of "random" numbers over and over. Depending on your compiler use "randomize(timer());" or srand(clock());" Normally we don't want a range which is so large. For normal uses (on gcc) you would do something like Dice=random()%6+1; //provides a value between 1 and 6,

How to change the background color when your on paint on the computer?

Im making something and I want to change the background color and type over it and beings I already wrote it can I just like change the color behind my writing

Answer: 
MS Paint is not a serious graphics editor. Mostly for kiddies. You could do what you want by putting your image on one layer and the text on another. But then, you need a good editor. FREE software (No Animation): http://www.getpaint.net/ (#1!! Very user friendly) GIMPshop is available for many different operating systems, including Mac OS X, Windows 98+, Linux, and Solaris: http://gimpshop.com/ http://www.zoner.com/ Free VCW VicMan’s Photo Editor: http://www.makeuseof.com/tag/5-free-alternatives-photoshop/ Free Web Photo Album: http://www.vicman.net/installed.php?Title=Web%20Photo%20Album&Version=1.2 Ron

How to add different language talking to your movie maker video.?

I am doing a video and need to put german talking in the background but I can not speak it. I was wondering if there is anyway I can add german speaking to my movie. Will I need a different program?

Answer: 
You could try going to translate.google.com, and entering the stuff you want in and translating it to German. Then you can click the "speak" button, and it will tell you how to pronounce it. You can either record the google translate voice saying it, or train yourself how to say it from the google translate example.

How long to learn how to make maps in unity 3D?

Nothing fancy, just want to make a (huge) map with mostly models and codes from others, for I can not code, and am barely able to model anything. Would it even be possible without the lack of said skills?

Answer: 
That would be around uh... 2 weeks, depending on your ability to make the maps... If you are good, then you should finish the work for less than a week. Good luck!

How to put all my Tumblr posts in a scrollbox?

I'm using the simple Redux theme. On the left where all my posts are, I want to put it all in a scroll box, so the overall page doesnt have scrolling- just that box... I've tried codes in different places hoping to capture the content in a scrollbox but I guess all the DIV codes messes it up? What's the best way to go about this?

Answer: 
You have to restyle the main post container and use a height you want. This may work: height: YYpx; overflow: auto; Just keep the same width if it has one. This is one version of a scrollbox: http://pastebin.com/ZSk00VkL Ron

How to insert a script of a created data base in Oracle?

I have a script of a database, and now I need to put in Oracle to run it.
Please, help!

Answer: 
Go to Oracle's own site and you'll find instructions and links to download and install Oracle locally (on your PC). Check you suit their licence and away you go,

How to design a program that auto updates all of your account passwords?

I've been dancing around with this idea for a bit, but just can't grasp how to properly do it. Is there a program that allows you to do this already? If not, could you kindly give a general overview of exactly what would be required for this?

Thank you for your time.

Answer: 
Very bad idea, if you could get the program to log on all your web sites with password and then go to change the password web page, type in current password and change to new password. Then record what the new password is for that site. Since all web sites uses different change password screens and field names. Look at Lastpass or other like programs, you need to keep password secured.

How can i learn how to build websites?

How can i learn to build websites that generate income. I have been very interested in this for a very long time but i cant seem to find any classes out there about it. So if anybody could help me it would be greatly appreacated.

Answer: 
Classes? . your local community college may have ways around that. There are tons of websites out there with tutorials to learn how to build websites. Understanding HTML, CSS, perhaps Javascript, and other types of coding will help you very much. http://www.w3cschools.com/html/default.asp -- one specific tutorial I found very helpful. If you need books, check them out at your local library, local bookstore, even Barnes & Noble

How to post posts on a different page in wordpress?

I have just made a website in wordpress and I need to post posts on more than one page. I have the Home page which all my posts go too but I cant post anything to my other pages. I have a technology page and gaming page. I want to be able to post posts relevant to technology on the technology page and the same for gaming. Then have all my posts show on the home page. I don't know any coding so I will need you to explain very simply, sorry. Thank you.

Answer: 
I don't remember the exact way I had this set up, but I'll make an attempt to help out. First off, I seem to remember that you could not post things on separate pages *AND* have those posts show up on the front page; it was one or the other. My workaround was to set up categories for all of my posts, and then set up pages that redirected to the category pages. Everything was then on the front page, and users could filter posts based upon subject. The basic setup: You need this plugin: http://wordpress.org/extend/plugins/page-links-to/screenshots/ Then, make all the pages you want, and set up corresponding categories. You can view category pages at yourwebsite.com/&cat=someNumber. You can figure out what's what there. Then, edit each of the pages. At the bottom, it should have a box saying "Page Links To." Put the address to the corresponding category there, and save. Once you get them all, try test-posting something of each category, then go to the pages and see what happens! Cheers! P.S. If there is a way to do exactly what you're looking to do, I'm not privy to it. I worked with WordPress a little over a year ago, so things may have changed by now.

Syndicate content