Question about Computers & Internet

1 Answer

C++ programs using class declaration

C++ programs to convert a decimal number to any other number systems using class dclaration

Posted by on

1 Answer

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer

A c++ program to convert decimal numbers to other number systems

Posted on Feb 06, 2009

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.
goodluck!

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

How to convert a binary to text


Letters can be converted into decimal number using ASCII table. Every Character has it own equivalent number. Once converted into decimal (base 10), I could be easily converted into binary (base 2)
You could also use applications or web based applications such as ASCII to binary converter to help you convert it.

Jul 22, 2011 | Computers & Internet

Tip

System Restore for Windows 7


1. Open the Start Menu.

A) Click on All Programs, Accessories, System Tools, and System Restore.


2. Open the Control Panel (All Items View).

A) Click on the Recovery icon.
B) Click on the Open System Restore button.


A 'System Restore' window will appear. Here you will have to check "Restore computer to an earlier time'


A) Click on the Next button


Now you will find a window with Dates, Description and Type,

Note: It is better if you could remember from which date you are facing the issue, try to select a date prior to that date.


The detail of that particular date should show "System Checkpoint" and time on the right hand side box. Select that date.


Now, Click on Next and System Restore will start. Click on the Finish button and windows will take a reboot.

on Nov 02, 2011 | Microsoft Computers & Internet

1 Answer

Define algebra:decimal


Decimal is the base-10 notational system for representing real numbers. The expression of a number using the decimal system is called its decimal expansion, examples of which include 1, 13, 2028, 12.1, and 3.14159.

Each of the arabic numerals 0 to 9 is called a decimal digit, and the period placed to the right of the units place in a decimal number is called the decimal point (or, in the case that a comma is instead used for this purpose, the decimal comma).


The decimal is a way of managing numbers that has ten as a starting point, or base. It is sometimes called the base ten or denary numeral system. The word "decimal" is also used instead of the word "period" to point out the dot that is sometimes used separates the positions of the numbers in this system. Almost everyone uses this nowadays and prefers the convenience of it probably because it shows up most often in calculations in nature and has "one" as another starting point for the system. The number one is usually the easiest to work with in calculations.




You may go to the link below for decimal tutorial:


http://www.algebra1help.com/flash/noflash/3.html

Jun 16, 2011 | Computers & Internet

1 Answer

Program for calculator using vc++


hi, here the code...
class is used for items(item.h) . In this class are stored the two number into property and the result:
property double nr1;
property double nr2;

The operations like :asin,cos,power,pi,plu,divide,sqrt etc. are edited into inherited class from items:

//
#pragma once
#include "Items.h"

using namespace System;
public ref class asinus : public Items
{
public:

asinus(void)
{

}

double^ asin(double a)
{
return Math::Asin(a);
}

};


//



In the base class 6 boolean variable is used for the precedent operation:


bool plus;
bool minus;
bool produs;
bool divide;
bool sin;
bool prec;
For button equal:

private: System::Void btnegal_Click(System::Object^ sender, System::EventArgs^ e)
{
prec = false;

if(plus == true)
{
this->txtRes->Text = Convert::ToString(p.aduna(i.nr1,i.nr2));
}
else if(minus == true)
{
this->txtRes->Text = Convert::ToString(m.scadere(i.nr1,i.nr2));
}
else if(produs == true)
{
this->txtRes->Text = Convert::ToString(pr.inmultire(i.nr1,i.nr2));
}
else if(divide == true)
{
this->txtRes->Text = Convert::ToString(d.impartire(i.nr1,i.nr2));
}
}

there is a function for operaton click:
private: System::Void Operation_Click(System::Object^ sender, System::EventArgs^ e) { if(prec == false) { i.nr1 = Convert::ToDouble(this->txtRes->Text); } if(prec == true) { i.nr2 = Convert::ToDouble(this->txtRes->Text); } }

Apr 10, 2009 | Microsoft Computers & Internet

1 Answer

In cpp programming why do we go for abstract base class?


Virtual keyword allows the program to dynamically decide which function to call. That is, when derived class is inherited from a base class the function in derived class can perform a completely different action from the one in Base class. Hence the function call via a pointer or reference maps to different functions based on the type of the object.

Abstract base class is used, so that anyone who is inherting from this class should implement that interface. Because the base class may not have a meaningful implementation for that interface. For example to design a program for computing area of different shapes like rectangle, triangle, hexagon etc. base class can be thought of as Shape. In addition the base class can be made abstract by declaring Area to be a pure virtual function. Then the different shapes like Rectangle, Triangle classes can inherit from Shape and implement Area interface based on their formulae.

Apr 06, 2009 | Microsoft Computers & Internet

1 Answer

Programming in c


To convert numbers you can use the printf() function
printf("%d", x'FF') hex to decimal
printf("%o", x'FF') hex to octal

If you want to save the value in another variables use sprintf
e.g

a = x'FF';
b = sprintf("%d",a)


Jan 15, 2009 | Computers & Internet

1 Answer

C++ program for the conversion of decimal numbers to hexadecimal


all your solution is at
http://www.c.happycodings.com/Beginners_Lab_Assignments/code18.html

Dec 07, 2008 | Computers & Internet

1 Answer

A c prog to convert decimal to hexadecimal number.


Sure, here you go:

int main(void) {
int input;
printf("Enter a decimal number: ");
scanf("%d", &input);
printf ("In hexadecimal, that is: %X\n\n", input);
return 0;
}

Oct 05, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

290 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

kakima

Level 3 Expert

98829 Answers

David Payne
David Payne

Level 3 Expert

14071 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...