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??
4 1373
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?
sicarie 4,677
Recognized Expert Moderator Specialist
Please have a look at this as well.
Thanks.
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}
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(represe nt) 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.
Sign in to post your reply or Sign up for a free account.
Similar topics |
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. How many sum of tables from all of the database we can create?
4. How many columns we can create in every tables?
5. How many rows data can we input into every tables?
6. How many sum of rows data can we put in one database?
7. How many sum of...
|
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 website and after I click
"photo albums" on the left of the screen and then click "2006 Baseball
U Summer Team Pictures," all of the pictures in the album have that
annoying red "x" next to them. I am unable to view the images. Guessing
that the...
|
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 more than ten character.
3.or it shouldnt contain at one least one letter and one digit
4. User enter password and re-enter password again to meet the requirement.
5.Password has to be matched when user entered 1st and 2nd time.
if any of you...
|
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 more than ten character.
3.or it shouldnt contain at one least one letter and one digit
4. User enter password and re-enter password again to meet the requirement.
5.Password has to be matched when user entered 1st and 2nd time.
if any of you...
|
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 page..does any one know how to do it?
Also i have tryed to use ImageButton on the page but it doesnt link the image to another page?can someone help me please?i need urgently help..
thank you
| |
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 another document.
#include<stdio.h>
int
main ()
{
int i;
int a = { 10, -99, 888, 4, 234, 1, 30, 40, 22, 34 };
int max = a;
int min = a;
|
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 Cal_percentage() which
calculate the percentage of the student by the formula (Ob_marks *
100 )/Total_marks and Display() which show all information of the
student. The class should also contain the default constructor which
initializes all the data member of...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |