Where does DECA conduct is programs?
As a cocurricular organization, DECA is an integral part of classroom instruction--a vehicle through which students learn marketing and management and are motivated to succeed.
How can you make c and c plus plus language compatible with 64 bit operating system?
Language definitions (specifications) are independent of any Operating System. That is, neither the C nor C++ language specification has any dependence on a specific Operating System's features or the underlying hardware platform.
However, when implementing a C or C++ compiler on a specific Operating System and hardware platform, a variety of choices must be made. The Compiler implements the C or C++ language specification. Those specifications often give the compiler a choice in how to allow a certain feature to behave.
The most common choice is the default size of and Int and a Pointer. Neither the C++ nor C language require a certain specific size, and thus, compiler designers are free to chose.
Turbo C++ keywords are the same as C++ keywords. The language remains the same, only the implementations differ. The Turbo C++ implementations were standards-compliant at the time of their release, but the product is no longer supported.
What are the array operations?
There are no array operations in C. Arrays implicitly convert to pointers, thus any operation you might attempt upon an array you would actually perform on a pointer.
What is standard input and output error file?
The C standard library provides stderr as the standard error file. It is an output file, much like stdout, except it cannot be redirected via the command line. By default, error messages via stderr are output to the console, the same as the undirected stdout. However, the programmer may choose to redirect stderr to a disk file or allow the user to choose a location via command line switches. Although error messages can also be output to stdout (or indeed to any output stream), it is best to keep error messages separate from the standard output stream. For instance, the user may choose to redirect standard output to a disk file or to the input stream of another program, while error messages are directed to the console.
Advantages and disadvantages of assembly language?
ADVANTAGES
reduced errors
faster translation times
changes could be made easier and faster
symbolic code is easier to read and follow
changes can be quickly and easily incorporated with a re-assembly
DISADVANTAGES
the programmer requires knowledge of the processor architecture and
instruction set
many instructions are required to achieve small tasks
source programs tend to be large and difficult to follow
programs are machine dependent, requiring complete rewrites if the
hardware is changed
Assembler languages are unique to specific types of computers.
Programs are not portable to other computers.
Write a c function for minimum and maximum value from the given input?
Assume that all your data were saved in array of type double and size 100:
int arrSize = 100;
double arr[arrSize] = {0.0};
...
for(int i = 0;...)
{
...
cin >> arr[i];//here you enter all elements using loop for
}
...
Out side of the function main you can define two functions max and min which take the array arr as argument
double min(const arr[], int arrSize)
{
double minimum = arr[0];
for (int j = 0; j < arrSize; j++)
{
if (minimum > arr[j])
{
minimum = arr[j];
}
}
return minimum;
}
double max(const arr[], int arrSize)
{
double maximum = arr[0];
for (int j = 0; j < arrSize; j++)
{
if (maximum < arr[j])
{
maximum = arr[j];
}
}
return maximum;
}
(1) Install the software DOSBox ver 0.72 ( 1.2 MB ) (Freeware) from the link below (Direct Link)
http://prdownloads.sourceforge.net/dosbox/DOSBox0.72-win32-installer.exe?download
(2) Before going to the details u have to create a folder (any name will do). Here we name it as Turbo
(3) Copy the TC into the Turbo folder. You can download Turbo C/C++ here.
(4) Run the DOSBox 0.72 from the icon located on the desktop or from the location of the installation folder
(5) Then u are presented with two screens which look like the command prompt in Windows. One with a Z prompt. You can ignore the other screen.
(6) Type the following commands at the command prompt [Z]:
Mount [Type in any alphabet that u wish except z] [Type the source of the turbo C] press enter
(7) Now , Type in the following commands after the Z prompt:
Z: mount d c:\Turbo\ [The folder TC is present inside the folder Turbo]
(8) Now u should get a message which says: Drive D is mounted as a local directory c:\Turbo\
(9) Type d: to shift to d: prompt . Next follow the commands below
CD TC [The contents inside the folder Turbo gets mounted as a virtual drive (Here D drive)
CD Bin
TC or Tc.exe [This presents u the Turbo C++3.0 screen]
(10) In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . So make the path change to something like D:\TC\include and D:\TC\lib respectively )
===========================================================
Points to Note:
(1) In order to get the full screen use the key combination of Alt and Enter
(2) When u exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files u have saved or made changes in Turbo C++ 3.0 will be copied into the source directory(The directory which contains TC folder)
(3) It is a good idea to backup your files in the source directory prior to running DOSBox 0.72
(4) For additional help go through the readme file located in the installation folder or look on the website of the DOSBox forum.
(5) Don't use shortcut keys to perform operations in TC because they might be a shortcut key for DOSBOX also . Eg : Ctrl+F9 will exit DOSBOX rather running the code .
=HA#0-
=FA#1-
=FA#2-
=FA#3-
=FA#4-
=FA#5-
=FA#6-
=FA#7=
It consists of seven Full-Adder and one Half-Adder, has 2*8 input lines and 9 output line (8+carry).
What can be entered into spreadsheets?
Three types of data may be entered into a spreadsheet or worksheet: (1) values or numbers, (2) names or labels, and (3) formulas for calculation.
What is the format specifire of data type BYTE?
Nothing (actually there is no BYTE in C). Use one of these: %c %x %u %o %d.
If a program have 2 main methods can the program run or not?
No, a program may not work with two main methods. If we preferred with working with many packages means then each package may consist of a main method.
How do you code a character literal?
char c = 'a';
'a' is a literal character, which assigns the value 0x61 (ASCII code 97 decimal) to the char variable c.
The following lines are therefore equivalent:
char a = 0x61;
char b = 97;
char c = 'a';
In Java
A char in Java is a 16-bit integer, which maps to a subset of Unicode.
In C A char in C is an 8-bit integer, which maps to standard ASCII.
Note that in both Java and in C you can use a char value like a normal integer type: char c = 48;
Write a c program to find given number is prime or not?
Yes, do write, or if you're too lazy to your homework, use google.
The Philippine Scouts message board at www.philippine-scouts.org would be a good starting place for this question.
Write a program that asks the user to type two integers A and B and exchange the value of A and B?
// While this doesn't prompt the user for input, it does reverse the values' contents. $intA = '10';
$intB = '20';
$tmp = $intA;
$intB = $intA;
$intA = $tmp;
print $intA; // 20
print $intB; // 10 // An even quicker way is...
list($b,$a) = array($a,$b);