473,378 Members | 1,500 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,378 software developers and data experts.

help me in this program. please!!

hi, every body..

help me in this program. please!!

write a c++ program that converts hexadecimal digit to its corresponding decimal value.

input/output:
Enter a hexadecimal digit :A
The corresponding decimal value:10

can any body help me!!
.
.
.
I’m waiting??
Jul 5 '07 #1
4 1358
Silent1Mezzo
208 100+
hi, every body..

help me in this program. please!!

write a c++ program that converts hexadecimal digit to its corresponding decimal value.

input/output:
Enter a hexadecimal digit :A
The corresponding decimal value:10

can any body help me!!
.
.
.
I’m waiting??
What have you got so far? Do you know how to convert a hex value into a decimal value?
Jul 5 '07 #2
sicarie
4,677 Expert Mod 4TB
Please have a look at this as well.

Thanks.
Jul 5 '07 #3
What have you got so far? Do you know how to convert a hex value into a decimal value?
yes , I know how to convert a hex value into a decimal value but I don’t know how to writ this in a program.
but I think that we must use switch statement.. If we ..how must the program will be like?

can you explain for me..

{thanks a lot}
Jul 6 '07 #4
nemisis
64
Give it a try, write ur variables,
use the switch statement and don't forget to store the digits after the switch statement.

Also remember that A=10, B=11 C=12 and so on , so u would hv to convert(represent) these values b4 the switch statement in variables of A , B, C

And get the input from the user in a string rather than a double

I am not so good at this but hope u can do something and then ask ur queries.
Jul 6 '07 #5

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

Similar topics

2
by: xpcer | last post by:
Halo everybody, can you help me, please. Can you tell me: 1. How many databases can we create in mysql (using Windows Operating Systems) 2. How many tables can we create in every database? 3....
7
by: Mickyd1561 | last post by:
Hey everyone I'm new to this groups thing and thought maybe someone can help me. My problem is that I can't view specific images on only one website. www.baseballu.net is my baseball team's...
2
by: karizmatrix22 | last post by:
Hi. I need a application where accept user password. The java program should do the following: 1. Application accept user password from keyboard 2. It has to be Less than six character and not...
0
by: karizmatrix22 | last post by:
Hi. I need a application where accept user password. The java program should do the following: 1. Application accept user password from keyboard 2. It has to be Less than six character and not...
0
by: karizmatrix22 | last post by:
I using Microsoft ASP.NET web matrix program to create asp website..i would like to link a image to the another page.for example..when the user click on the image it should take user to the next...
3
by: james121285 | last post by:
I have written a program that will take the max and min of 10 set values. I have to now change my program to allow for these inputs to be entered in by another document, and print the values into...
5
by: mohammaditraders | last post by:
Question # 1 Write a program which consists of a class named Student, the class should consists of three data members Name, Ob_marks, Total_marks and two member functions...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...

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.