Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 16th, 2007, 09:38 PM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default im new with c# i need help

1) Write in C# a function with signature string ConvertDecimalToBinary(int decimal). The function should convert an integer into binary string. For example: 123 => 1111011 or 21 => 10101 The input is always positive integer.


2) Convert the expression ((A+B)*C-(D-E)^(F+g)) to equivalent Prefix and Postfix notations.

Prefix Notation:

Postfix Notation:

 
Old February 16th, 2007, 10:34 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Maybe you should do your own homework?

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: The Gloaming by Radiohead (Track 8 from the album: Hail To The Thief) What's This?
 
Old February 16th, 2007, 10:38 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Agreed. You wont learn anything if we do it for you.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
 
Old February 16th, 2007, 10:38 PM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i tried many times but i didnt get the correct answer :(

 
Old February 16th, 2007, 10:39 PM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

but i told you that im a beginner and i really need the solution for this two questions

 
Old February 17th, 2007, 02:47 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Nair Send a message via MSN to Nair
Default

((A+B)*C-(D-E)^(F+g))

Prefix : +((Ab)*c-(DE)^+(Fg))

PostFix: ((AB)+c*(DE)-^(Fg)+)

Nikhil Nair
Thrissur
Kerala
 
Old February 17th, 2007, 03:39 AM
Registered User
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you very much

 
Old February 17th, 2007, 04:54 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Quote:
quote:but i told you that im a beginner
You didn't. You didn't even ask a question, you just dumped your homework question on this form with instructions for us to fix your problem.

Read this and you'll understand why you get responses like tis
http://www.catb.org/~esr/faqs/smart-questions.html

Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Im leanring a new language ironchef ASP.NET 1.0 and 1.1 Basics 1 December 3rd, 2007 09:39 AM
Any idea about how to work with IM? baburman C# 2005 9 October 18th, 2007 09:47 AM
im new here and i need ur help.... momoi Beginning VB 6 2 January 30th, 2006 11:44 PM
Im new in P2PForum darkdog BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 June 20th, 2003 01:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.