473,394 Members | 2,063 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Getting started with C#

Hi to all,
I have to do some simple programs in c#,only in console aplication,but im at the beginning of learning this language,and i cant if any body can help me those are the exercise:

1-a program that find if a number is or not a exponencial power of the number 2 (number=2*2*2*2....)

2-a program that do the dividing operation( / ) ,without using "/" or " * ".

3-a program that sorts an array of strings.The array is filled up randomly.

I dont have much time.Thank u in advance!

Brenda
Aug 29 '07 #1
4 1145
pbmods
5,821 Expert 4TB
Heya, Brenda. Welcome to TSDN!

Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

I'm going to go ahead and move this thread to the .NET forum, where our resident Experts will be better able to help you out.

The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. You have not asked a question. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

Please read the Posting Guidelines and particularly the Coursework Posting Guidlines.

Then when you are ready post a new question in this thread.

MODERATOR
Aug 29 '07 #2
JosAH
11,448 Expert 8TB
Hi to all,
I have to do some simple programs in c#,only in console aplication,but im at the beginning of learning this language,and i cant if any body can help me those are the exercise:

1-a program that find if a number is or not a exponencial power of the number 2 (number=2*2*2*2....)

2-a program that do the dividing operation( / ) ,without using "/" or " * ".

3-a program that sorts an array of strings.The array is filled up randomly.

I dont have much time.Thank u in advance!

Brenda
What have you done so far? I have a couple of tricks up my sleeves for simple
things like you mentioned, but I don't want to give those tricks away to someone
who doesn't even understand the basics yet.

kind regards,

Jos
Aug 29 '07 #3
SammyB
807 Expert 512MB
Hi to all,
I have to do some simple programs in c#,only in console aplication,but im at the beginning of learning this language,and i cant if any body can help me those are the exercise:

1-a program that find if a number is or not a exponencial power of the number 2 (number=2*2*2*2....)

2-a program that do the dividing operation( / ) ,without using "/" or " * ".

3-a program that sorts an array of strings.The array is filled up randomly.

I dont have much time.Thank u in advance!

Brenda
Do you need help with C# language or how to solve the problem. Hints to help solve the problems:
1) What would happen if you divided by 2?
2) How would you multiply two numbers by only using addition?
3) Doesn't the array class have a sort method?
HTH --Sam
Aug 30 '07 #4
Jos for the exercise 1 & 2 i have done some thing .For example for the 1st someone help me to do a simple way,by multiplacation until the number limit sth like this.But a friend tells me sth that have to do with the binary operator,sth with shifting.For the 2nd i have done a simple recursive program that function,but my friend said to sth with overloadin operators,if u can help with that.
Sam to not remention what a said before,for the 1st i thought of dividing by 2 until it becomes 1 or fewer,for the second i have done sth with that,for the 3rd i want another not the class method.

Thank u so much guys,

Brenda
Aug 30 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
1
by: soni29 | last post by:
Hi, I'm going to be starting a project with a friend of mine in C#, we're doing it to learn the language a little better, to get more experience with it. We've already come up with an idea of the...
0
by: cara_little | last post by:
Good Morning, I'm trying to get started with the Enterprise Library to evaluate it and recommend to the rest of the developers in the company. However, I'm having a heck of a time getting started...
0
by: tamdino | last post by:
Please accept my apologies if I am posting this in the wrong place. I am trying to get started using MySQL-Front and I am totally lost. Does anyone know where there is a tutorial for getting...
84
by: Bibby | last post by:
Hi, I'm interested in getting started in the programming world. I've dabbled in C, C++ and VB6. Which would be the best language to focus my attention to regarding the following considerations: ...
6
by: Jack Duijf | last post by:
Hello, I am looking for a person in The Netherlands that is willing to help me getting started with Vb.net. Please send a message to jack@aicn.nl if you can help me getting started with the...
1
by: =?Utf-8?B?Q29kZVNsaW5nZXI=?= | last post by:
I plan to build my own 2008 Server/Hyper-V system and will not be using one of the tested Dell or HP systems from the release notes and could use some pointers as to my assumnptions and answers to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.