Write a c program the extracts and prints the rightmost digit of the integral portion of the float?
#include<stdio.h>
int main (void)
{
float x,y;
int z,w;
printf("enter a number:");
scanf("%6.2f",&x);
y=x/10.0;
z=x-y;
w=z%10;
printf("the rightmost digit is %d\n",w);
return 0;
}//main
Prints the 1000th prime number?
// Print prime number series.
class prime
{
void main ()
{
int i = 1;
int C = 0;
int n = 1;
int X = 0;
while (X != 1000)
{
if ( n % i n )
{
C = 0;
n++ ;
i = 0;
}
}
i++ ;
}
}
}
What is utilities of file in foxpro?
Open-read-scan-extract .DBF files owing to next programming source
What does the design of decision support depend upon?
Decision support depends on how structured a particular problem that needs solving is.
Why is time or a clock important in computer programming?
Clocks and timers are really only of importance if you need to observe the passage of time, whether as part of the program itself or in order to test the performance of an algorithm. Real-time or time-critical programs are obviously heavily reliant upon the accurate passage of time, however even a program that is not reliant upon time may occasionally inspect the system clock to determine the current date and time, such as when producing a log entry.
How do you enter Unicode or Alt Codes into a Batch File?
Batch files must be saved in ANSI format because that's the only format the CMD shell natively supports. If you save the file in any one of the Unicode formats (UTF8, UTF16, etc) the batch will not execute or will execute up until the first unrecognised symbol, especially if the file also contains a byte-order-mark (BOM).
While the batch file itself must be encoded in ANSI, that does not mean you are limited to just 256 characters. By changing the code page, the same encoding can represent any character you want, you simply need to know in which code page it resides. Whilst editing your batch file, there can only be one code page in effect so any characters you've already entered using a different code page may not display correctly. However, this effect is temporary since changing the code page doesn't change the encoding, it only changes the way that encoding is interpreted by your text editor.
Your batch file will also need to include the CHCP command to change the console code page accordingly as it is executed. However, before you switch code pages, remember to save the current code page so that you can restore it when you're done. This is particularly important if your batch file might be invoked as part of another batch file. If you don't restore the code page, the other batch file may not work as intended. Also, never assume that the current code page is always going to be the system default code page because the default depends on the locale. Always leave things exactly as you found them.
As an example, suppose we wish to display the full range of box drawing characters found in code page 437. Here's how our code will appear in the editor:
@ECHO OFF
REM Save the current code page.
FOR /F "tokens=*" %%A IN ('CHCP') DO FOR %%B IN (%%~A) DO SET codepage=%%B
CHCP 437 > NUL
ECHO ÉÍËÍ» ÚÄÂÄ¿ ÖÄÒÄ· ÕÍÑ͸
ECHO º º º ³ ³ ³ º º º ³ ³ ³
ECHO ÌÍÎ͹ ÃÄÅÄ´ ÇÄ×Ķ ÆÍØÍµ
ECHO º º º ³ ³ ³ º º º ³ ³ ³
ECHO ÈÍÊͼ ÀÄÁÄÙ ÓÄÐĽ ÔÍÏ;
REM Restore the original code page.
CHCP %codepage% > NUL
Don't worry about all the hieroglyphics, that's simply how Windows-1252 interprets the encodings and is how Windows Notepad will display your batch file. To see the correct symbols you will need to use an editor that supports OEM-US encoding such as Notepad++.
When you execute this batch file, you should see the following output:
╔═╦═╗ ┌─┬─┐ ╓─╥─╖ ╒═╤═╕
║ ║ ║ │ │ │ ║ ║ ║ │ │ │
╠═╬═╣ ├─┼─┤ ╟─╫─╢ ╞═╪═╡
║ ║ ║ │ │ │ ║ ║ ║ │ │ │
╚═╩═╝ └─┴─┘ ╙─╨─╜ ╘═╧═╛
Is there any other software available to create a database than Microsoft Excel?
While you can create them with it, Microsoft Excel's main use is not for creating databases, but for creating spreadsheets. Microsoft Access is the main Microsoft product for creating databases. There are also many other applications that you can create databases with too, like Oracle, Open Office, or MySQL
How do veterinarians use computers?
A system could contain one or many of the following: *A time tracker *A customer scheduling system *Visiting and contact information tracker *Online payments and scheduling *Customer medical history *Billing *Online promotions and reminders
1. Determine the sum of 1..n = (n(n+1))/2 2. Subtract all the elements in the given array (n-1 elements) from the expected sum. 3. The missing number is the value remaining. /* Implementation in "C" */
int MissingNumber(int values[], int n)
{
int total = (n * (n+1))/2;
while (n>1)
{
total -= values[n-2];
n--;
}
return total;
}
What are request and response objects?
Response.Write("Hello World!")
Now, try to guess what response and write() are. Of course, response is a built-in object of ASP, while write() is one of its methods. You can introduce HTML tags in the string, it will be interpreted correctly:
Response.Write(" Hello World! ")
The response object can do things far more powerful than write text and ad HTML code to your page. As the name implies, its function is to send a response to the user, an output from the server. Now, this brings us one huge step closer to the initial goal of learning ASP, that is, to allow the creation of dynamic, interactive web pages.
For instance, one property for the response object is called ContentType. By default this is set to text/html, but you can change it to anything else, such as image, or a specific type of image, like JPEG or GIF, or a certain application. Let's take a look at the following example:
<% Response.ContentType="application/vnd.ms-excel" %>
Washington Paris London Moscow
As you can see, this is a simple HTML table, but the user will see it as an Excel table, as long as this piece of software is installed on the respective computer. If it's not installed, then, well, it wasn't such a great idea. You can use this feature to constrain the user to viewer to use a certain program, or to constrain the content to accept only a certain type of input.
You've seen the message "404 Not Found" hundreds of times on the Internet. It is caused by a property of the response object, called Status. It is often found in a conditional statement, such as If the ip address is . then Response.Status="404 Not Found" or "401 Unauthorized".
Another property is Expires, which establishes a period of time (expressed in minutes) to keep a page cached on a browser before it expires. There is also a version of this property called ExpiresAbsolute, which does the same, but sets a specific date and time for the page to expire. If you don't want the page to be cached at all, you can set the Expires property to a negative value.
Response.Expires = -1
The Buffer property decides whether to buffer the content of the page - meaning that the server will not allow the user to load the content of the page until it processes all the server scripts, or until it runs the methods Flush or End. If you want to use this method, you need to place it before the actual HTML code, and set it to "true". For the earlier versions of IIS (before 5.0), this was set by default to "false", but in the 5.0 and later versions, the default is "true". This is useful if you want the browser to finish performing a loop before showing anything to the user.
We've already met two methods of the response object, End and Flush. The End method puts an end to the script, and returns the result processed until the respective moment. The Flush method sends the HMTL content that has already been buffered without any delay (without waiting for the rest of the content to be buffered as well).
One method that is quite common is the Redirect, looking like this:
Response.Redirect("http://www.softwareprojects.org")
Now let's take a look at the request object, used to obtain information from the user. It is really valuable in connection with forms, as shown in the following chapter. It has a property called TotalBytes, which returns the number of bytes sent by the client's request. This is read-only, as you cannot modify this value:
X = Request.TotalBytes
After this, you can use the method called BinaryRead(a), to retrieve the data the user sent to the server as part of a POST request. The data will be stored in safe array. You need to specify the parameter a, which is how many bites you want the method to read from the user (value usually equal to the X variable returned by the TotalBytes property above).
Besides all these, the Request object also has collections, including ServerVariables (containing all the server variables), QueryString (with all the variables in a HTTP query string), forms and cookies, which are the most important, and will be discussed in the following chapters.
What was unix originally written for?
Unix was originally developed because there was surplus electronic equipment around Bell Labs, and some of the researchers who used the Multics system for research and publishing purposes could not get their work done.
Unix was originally developed to help with publishing research and reports in a multi-user system to be used along side the Multics multi-user operating system.
A statement found in many computer programming languages. It is a combination of the English words go and to. When executed it causes an unconditional transfer of control (a "jump") to another statement. The jumped-to statement is specified using some kind of label, which may be an identifier or a line number depending on the language. At the machine code level a goto is a form of branch or jump statement.
When did Bill Gates step down as CEO of Microsoft?
Some would say it was 2000.But as I recall, it was the same time "Windows 7" Started Marketing (2009). Windows 7 was supposed to be released after XP but with major viruses going around. Microsoft was hard pressed to defend against hackers by creating VISTA. Windows 7 was inherently the offspring of Windows Longhorn.
None
What is meaning of default program in computer?
default program is an application that opens a file when you double-click it. For example, if you double-click a .TXT file in Windows and it automatically opens in Notepad, then Notepad is the default program for files with a ".txt" extension. If the file opens in Microsoft Word, then Microsoft Word is the default program.
Default programs are necessary since many file types can be opened by more than one program. For example, your computer may have over a dozen applications that can open .JPG files. Therefore, theoperating system needs to know which program to open by default when you double-click a JPEG image file.
Both Windows and Macintosh computers store a list of default programs for each file extension. These relationships between programs and file extensions are also called "file associations." Both the Windows and Macintosh operating systems allow you to change file associations if you don't like the default program that is associated with a certain file type. For example, if you prefer to play MP3 files in iTunes rather than Windows Media Player, you can change the ".mp3" file association to iTunes. This will set iTunes as the default program for all .MP3 files.
Windows 7 has a built-in utility for configuring file associations called "Default Programs." This tool allows you to assign specific programs to one or more file extensions using a simple graphical interface. It also displays what file extensions are associated with each installed application. For more information on using the Windows 7 Default Programs tool, view theFileInfo.com Default Programs Help Article.
While Mac OS X does not include a Default Programs tool, you can simply right-click a file and choose "Open With…" to select a different program to open it. If you want to change the default program for a specific file, select the file and choose File → Get Info. Then select a different program in the "Open with:" section of the window. If you want to change the default program for all files with the same extension, press the "Change All…" button
Why is a processor's architecture so important?
it's because the aarchitecture view is must as per it only explains its external way of workin n processing
What are the features for fortran?
1. FORTRAN is automated for the scientific purpose only.
2. FORTRAN stands for formula translation.
3. FORTRAN allows the formula directly and perform the task.
4. Allows name and character in short form(06 characters).
5. Easy to program a very complex task.
6. FORTRAN does not allows any header or footer files.
How do you program visual basic on an android device?
Most developers don't use visual basic for android devices because android does not support the .net framework and therefore cannot run visual basic applications.
Developers usually use Java instead to program applications for android.
How do you use arrays in biginteger?
In Java, you would create an array of type BigInteger, then initialize each object (each array element) with the newoperator. I believe it would be something like this: BigInteger[] myArray = new BigInteger[5]; for (int i = 0; i
Write a c program whether a given word is palindrome do using function?
int main(int argc, char* argv[])
{
char a[10],b[10];
printf("enter any string\n");
scanf("%s",a);
printf("a=%s",a);
strcpy(b,a);
strrev(b);
printf("\nb=%s",b);
if(strcmp(a,b)==0)
printf("\nstring is palindrome");
else
printf("\nnot pelindrome");
return 0;
}
Was the internet orignally developed for business?
Definitely not. The Internet was developed by universities exploring networks for their own purposes in the 1060ies and 1970ies. commercialization began in the late 1980ies and early 1990ies.
What platform does the operating system run?
The operating system is a platform itself. There are many sub-platforms, such as .NET in Windows, which includes WinForms, WPF and maybe more. A better question would be "What platform does .NET run on?" or "What platform does MFC run on?" Both of these questions are noobish, though, but they are better to understand.
640 x 1024 x 1024 bytes (data transfer)
640 x 1000 x 1000 bytes (storage)
Where can I learn about computer operating systems?
This depends on which operating system you want to research. For example, there are three major OS'es. Those are Mac, Windows, and Linux. For Mac, you can go to apple.com and then lookup "Mountain Lion" in the search bar. To research Windows, o to Microsoft.com and find Windows. For Linux, you can goto ubuntu.com or look up fedora Linux on google. You can also find information about many OSes using wikipedia.