Having problems with your Dell Vostro 220 Desktop Computer ?

Create program for A-D:

\015 Write the syntax of the following: A.If else if statement (10)B.switch case statement(10)C.for loop staement (10)D.while loop (10) \015

Answers :

A.) If else statement using Javascript
<script type="text/javascript">
\012//If the time is less than 10, you will get a "Good morning" greeting.
\012//Otherwise you will get a "Good day" greeting.

\012var d = new Date();
\012var time = d.getHours();

\012if (time < 10)
\012 \012{
\012 \012document.write("Good morning!");
\012 \012}
\012else
\012 \012{
\012 \012document.write("Good day!");
\012 \012}
\012</script>

B.) Switch Case Statement Using C#
\012 using \012System;
\012
\012 class SwitchSelect
\012 {
\012 \012 public static void Main()
\012 {
\012 \012 string myInput;
\012 \012 int myInt;
\012
\012 begin:
\012
\012 Console.Write("Please enter a number\012 between 1 and 10: ");
\012 myInput = Console.ReadLine();
\012 myInt = Int32.Parse(myInput);
\012
\012 \012 // switch with \012integer type
\012 switch (myInt)
\012 {
\012 \012 case 1:
\012 \012 Console.WriteLine("Your number is {0}.", myInt);
\012 \012 break;
\012 \012 case 2:
\012 \012 Console.WriteLine("Your number is {0}.", myInt);
\012 \012 break;
\012 \012 case 3:
\012 \012 Console.WriteLine("Your number is {0}.", myInt);
\012 \012 break;
\012 \012 default:
\012 \012 Console.WriteLine("Your number {0} is not \012between 1 and 3.", myInt);
\012 \012 break;
\012 }
\012
\012 decide:
\012
\012 Console.Write("Type \\"continue\\" to go\012 on or \\"quit\\" to stop: ");
\012 myInput = Console.ReadLine();
\012
\012 \012 // switch with\012 string type
\012 switch (myInput)
\012 {
\012 \012 case "continue":
\012 \012 goto begin;
\012 \012 case "quit":
\012 \012 Console.WriteLine("Bye.");
\012 \012 break;
\012 \012 default:
\012 \012 Console.WriteLine("Your input {0} is \012incorrect.", myInput);
\012 \012 goto decide;
\012 }
\012 }
\012 }


C. For Loop Statement using C++
for(i=10; i > -1; i--)
{
\011\011\012\011 if(i == 0)
\012\011 cout << "Blast Off!" << endl;
\012\011 else
\012\011 cout << i << endl;
\012\011 } \012\011
\012}

D. While Loop Using Java
void main() {

\011int counter = 1;

\011while(counter < 5 )
\011\011{
\011\011printLine("counter is equal to " + counter);
\011
\011\011counter = counter + 1 ;
\011\011}

\011\011printLine("Goodbye");
\011}


Repair Help & Product Troubleshooting for Dell Vostro 220 Desktop Computer

Tips for a great answer:

- Provide details, support with references or personal experience .
- If you need clarification, ask it in the comment box .
- It's 100% free, no registration required.

Suggested Questions/Answers :

Gateway MX6455 - AMD Turion 2.0Gb with 1Gb Ram Stops working and goes to black screen after POST. Will not boot into windows. The more I try re-booting, the faster it stops.


Try to FORMAT your devices If your using XP use the tutorials below:\012How to partition and format the hard disk using the \012Windows XP Setup program\012\012 loadTOCNode(2, 'moreinformation');\012 You can use the Wi ... PC Laptops

Format - PC Laptops


How to partition and format the hard disk using the \012Windows XP Setup program\012\012 loadTOCNode(2, 'moreinformation');\012 You can use the Windows XP Setup program to \012partition and format the hard disk. To do this, ... PC Laptops

How to install xp in HP Pavilion dv6 1030 us Laptop and how to repartition my C: drive especially I have still 150 GB free space in C drive Please help me in this case Thanks in advance.


Partition and format the hard disk using the Windows XP Setup program\015\012\015\012 loadTOCNode(2, 'moreinformation');\015\012 You can use the Windows XP Setup program to partition and format the hard disk. To do this, use ... HP Pavilion dv6-1030us Notebook

HDD Partition help


Important If you follow these steps on a hard disk that is not empty, all the data on that hard disk is permanently deleted. We recommend that you back up your hard disk before you follow these steps.To partition and format your hard disk by us ... PC Desktops

When i turn it on it takes me to a black screen that says start windows normally or start in safe mode and stuff and i click start normally and it keeps taking me back to the same place no matter what i need help??


Please select last known good configuration from the black screen if this doesnt work select safemode from that screen and restore your computer to earlier time when it was working fine,. please follow the steps below to restore your computer.\ ... PC Desktops

System Restore... I have tried to run system restore on my computer.It satart to proceed as normal but when the computer restarts its says it couldnt restore to that date and no changes were made.ive tried doing system restore for muerous dates and the same thing happens. Any one know what to do? Help will be very appreciated. Reply Soon


System Restore is a valuable tool Microsoft released with Windows Me and substantially enhanced with Windows XP. (Windows 98 users can only gain this functionality with a third-party program.) Although it is not a backup utility per se, it performs a ... PC Desktops

I can't get my Adobe 9 to load. I keep getting this error reading saying that it can't connect to the network. I had Adobe 8.1 and it stopped working & then I opted to get 9.0. I kept getting the same error reading for both. Now I have no means to print anything that requires Adobe.


Hi,\015\012\015\012HERE I LIST VARIOUS POSSIBLE SOLUTION FOR YOUR ISSUE, IF YOUR NOT FAMILIAR WITH COMPUTERS OR IF YOU WANT SIMPLE SOLUTION FOR USING ADOBE PDF, JUST DOWNLOAD FOXIT READER SOFTWARE FROM THE BELOW LINK, IT IS SIMILAR ... Computer Processors

Screen display problems when running Adventures in Typing


I bought this for my daughters back in 2000. Now I find my mother wants to become a silver surfer and she would like to learn how to type letters. I tried using Adventures in typing on her laptop and saw that there were compatability issues. Af ... Disney Interactive Adventures in Typing with Timon & Pumbaa for Windows, Mac

Opengl drivers needed &'' Q_strncpyz: NULL src '' error


Hi, had similar problem myself, the problems are either you don't have a sufficient graphics or video card or you don't have or are not up to date with OpenGL drivers. The trio 32/64 graphic card is not one that is most likely to run with this game, ... Computer Games

How to put program type on tool bar - HP Pavilion dv6000z Notebook


\012\012Adding Icons to the Task Bar\012\012Click on the Start Menu to open it\012Click on "Programs" and find the program for which you want to create an icon\012 ... HP Pavilion dv6000z Notebook

I forgot my username an password


Disclaimer: Following information should be\015\012used only if its your system and you have forgotten account password.\015\012Don't use this information to access a system which is not yours\015\012without permission.\015\012Man ... HP Pavilion dv2000t 14.1" Notebook Laptop PC (Intel Core 2 Duo T5500 1.66 GHz, 1GB RAM, 100GB HDD, D... PC Notebook

Forgot password Acer 4710z. Laptop. forgot password. need to reset.


Disclaimer: Following information should be\015\012used only if its your system and you have forgotten account password.\015\012Don't use this information to access a system which is not yours\015\012without permission.\015\012Man ... Acer Aspire 5100 Notebook

Dvd maker on aspire 3690


Hi Artmovements,Well first off you need to get Acer to send you the disk... you are entitled by law to have it as it is not pre-installed.However, I think the point here is not if you have the software, but if you have the rig ... Acer Aspire 3690-2196 Notebook

Restore3 how do i restore my sony vaio laptop to its factory settings without having to buy the restore disk from sony


Hello,I found these instructions for you on the Sony support site.\015\012\015\012\015\012\015\012Solution\015\012 ... PC Desktops

Do not know how to install software


How to install a software program can depend on the operating system being used and the program being installed. Because of all\015\012 the different possibilities, we have created the below steps as\015\012 guidelines for insta ... PC Desktops

I need a restore disk for gateway computer - Gateway PC Desktops


From Gateway website:Q: What if my Gateway System Recovery CD/DVD is lost, missing or damaged? \015\012\015\012A:\ ... Gateway PC Desktops

How to enable internet on Dell Precision M4400


Fistly confir that which antivirus u use.\015\012\015\012if it norten, thn follow these step.\015\012\015\012\015\012\015\012\015\012\015\012Scan for Internet-Enabled Programs and Apply Firewall Rules Using the Interface ... Dell Precision M4400 Notebook

Pc relocator program


Dear Sir/Madam,\015\012CAUSE\015\012loadTOCNode(1, 'cause');This issue may occur if one of the following conditions is true: \015\012\015\012\015\012\015\012•\015\012The user account that you use to\015\012\011\011 install the game does n ... Eisenworld Alohabob PC Relocator Ultra Control 6.0 (pcrelocatu6) for PC

Full Hard drive


You can merge to partitions on a single disk, although this should be one of your last resorts. when two partitions are created on a single drive the OS recognizes the two partitions as two seperate drives. From win xp pro, you can access all the d ... Dell PC Desktops

New HDD Install Prob


Basic Troubleshooting Tips after Installing a New Hard DriveBased on Seagate IDE hard drives.If you have installed your drive and it does not function properly, perform the following basic checks:Additional Troubleshooting Tip ... PC Desktops

I have a presariov2000 lap top and I need to restore it to the manufacturer


Recovery Disks No longer come with HP Desktops/Laptops. There is a built-in program in your Program Files that allows the user to create their own set of recovery disks. But you may not need to use the recovery disks to bring the computer back to t ... HP Compaq Presario V2000 Notebook

My New Gateway isn't recognizing the cd/dvd drive :(


PLEASE read all the way through before doing any of the options.Thanks,Sounds like something in the system files/registry may have gotten corrupt. Perhaps one of the programs you installed caused an issue. Whatever the case, if it's brand ... Toshiba Satellite P205-S6287 Notebook PC

Clock and calander on Win 98 won't keep proper time or date


2 possible solutions1. Replace the CMOS battery that is on your motherboard.2. The time zone you have set may not be correct. Please read microsofts article below:\015\012\011Thanks t ... PC Desktops

I am getting error message for win32 generic host data executor prevention


Here is my resolution to the error SVCHOST.EXE GENERIC HOST PROCESS OR DEP ERROR IT DOES NOT INCLUDE DISABLING WIA OR DISABLING DEP (which is a good security feature) I have tried it on upto ... Dell Inspiron 6000 Notebook

Can't be able to start my web cam direct. - HP Pavilion DV6295us Notebook


Hi,\015\012\015\012Here are the various possibilites for your issue and its can be solved by the following solution:\015\012\015\012Please check, how the issue must have created and take the necessery steps to solve the proble ... HP Pavilion DV6295us Notebook
  • Start your question with What, Why, How, When, etc. and end with a "?"
  • Be clear and specific
  • Use proper spelling and grammar
all rights reserved to the respective owners || www.electronic-servicing.com || Terms of Use || Contact || Privacy Policy
Load time: 0.2635 seconds