Friday, July 31, 2009

Help with C++ program?

My assignment: Write a program that prompts the user to enter 3 strings. The program then outputs 6 diffente ways to arrange the words.


Example: a, b, c can be arrange as


abc


cba


I created my program but it only reads sigle words like hi, hello but when i enter somenthing like


"Hello there"


"How are you"


then progam fails. What is the problem when entering this words separeated by space. How come the computer cannot read them.





#include %26lt;iostream%26gt;


#include %26lt;string%26gt;





using namespace std;





int main()


{





string word1;


string word2;


string word3;





cout %26lt;%26lt; "Enter a word: ";


cin %26gt;%26gt; word1;


cout %26lt;%26lt; "Enter a second word: ";


cout %26lt;%26lt; "Enter a second word: ";


cin %26gt;%26gt; word2;


cout %26lt;%26lt; "Enter a third word: ";


cin %26gt;%26gt; word3;


cout %26lt;%26lt; "The permutation of the words you have entered are: " %26lt;%26lt; endl;





cout %26lt;%26lt; word1 %26lt;%26lt;"-" %26lt;%26lt; word2 %26lt;%26lt; "-" %26lt;%26lt; word3 %26lt;%26lt; endl;





cout %26lt;%26lt; word2 %26lt;%26lt;"-"%26lt;%26lt; word3%26lt;%26lt; "-" %26lt;%26lt;word1 %26lt;%26lt;endl;





cout %26lt;%26lt; word3 %26lt;%26lt;"-"%26lt;%26lt; word2 %26lt;%26lt;"-"%26lt;%26lt; word1 %26lt;%26lt;endl;





please help!

Help with C++ program?
rather than





cin%26gt;%26gt;word1;





use





getline(cin,word1);





it will read the entire line and assign to word1...
Reply:to input words with space use


cin.getline(char , int size ,in delimiter character) function





this does not work with normal cin because it is delimited with space

sympathy flowers

I need help on basic C Programming?

I've been trying to understand the C language, but for some reason I can't grasp it. Are there any helpful books, software, or suggestions to help me understand C programming any better?

I need help on basic C Programming?
Hi,





Where is a will there is a way. So be concentrate in ur study. I think this one is starting trouble. Better u started with "Let Us C" book written by Yashwant Kanetkar. I love him C knowledge, additionaly he gave some excersize in that book. How many days u taken for study of C langugae, it is a SEA. My fav. and interested language is C.


Better start with tutor for starting...
Reply:I have posted some very small and tiny programs in the applications, so that the beginners can easliy understand the language and programming. See if it helps you,





http://www.myspace.com/my_technical_blog


Will vitamin c help my daughter stop coughing, runny nose etc?

i was told that if i put liquid vitamin c in my daughter's juice bottles that it will help her to stop coughing as much and stop the runny nose she constantly has

Will vitamin c help my daughter stop coughing, runny nose etc?
Only time will make them go away, but if the symptoms aren't improving after a week, take her to a dr.
Reply:Be careful!! too much can cause liver damage. Putting in a little bit might help, however she just might have allergies. See a pediatrician first, before you do anything as it might cause more harm than good. Be careful what you give your kids, you never know how they will react to it.
Reply:yup... it wont stop completely... but will make the cold a bit more bearable...
Reply:the Vitamin C can prevent you form getting cold like symptoms but by the time you get it it is too late, you can take her to the doctors
Reply:Vitamin C will help prevent colds but will not stop the symptoms if they have already started. If you add oranges or pineapples to your daughters diet it will help her fight off colds in the future.
Reply:Sure... eat some oranges, strawberries, spinach, melon
Reply:Yes and take some NyQuil or DayQuill.


Help with c++ program?

This is my 1st c++ course and i desparately in need of some help.I need a program that will print out the year with the most hurricanes. the program will input the name, month,and day the hurricane occur.please note this has to be multiple years say 2006,2005,2004 etc. I could do the program for 1 year but cannt do it for multiple years. also the hurricane has to occure in the season( june 1st to nov 1st). i appriciate any input. thanks in advance.

Help with c++ program?
Alright. Here's the deal.





Since this is your first course, here are some tricks.





If the program will have an input of name, month,and day the hurricane, then you will need 4 variables. A string and 3 integers.





How will you use them? How many times will you repeat the loop?





If you do not know how many times you want it to be repeated, then the wisest choice is a do/while. Otherwise, let the user tell you how many times it should be done.





You will make those 4 variables. They should be arrays, make sure they are big enough.





it will be something as simple as this:





let the user tell you how many times he want it to be repeated:





int timesToBeRepeated = 0;


cin %26gt;%26gt; timesToBeRepeated;





for ( int i = 0; i %26lt; timesToBeRepeated; i++ )


{





cout %26lt;%26lt;"Enter the Hurricane name: \n";


cin %26gt;%26gt; hurricaneName[i];


.


.


.


}





then, to print it out, just do something like this:





cout %26lt;%26lt;"Hurricane Name"%26lt;%26lt;" %26lt;%26lt;"Day"%26lt;%26lt;..%26lt;%26lt;endl;





then:





for ( i = 0; i %26lt; timesToBeRepeated; i++ )


cout %26lt;%26lt; hurricaneName[i] %26lt;%26lt;" "%26lt;%26lt;....%26lt;%26lt;endl;





Work out the rest, but that is pretty much it., Any doubt, contact me.
Reply:use an array that goes from 1-n where n is the number of years your data spans. Everytime a hurricane happens in that year, increment array[p] by 1 where p is the year of your data entry.





then loop from 1-n and look for the year with the biggest array[p] value


Need major help with a C# code?

I need to code a C# program with visual express 2005 that will find the average of all prime numbers between 2-100 and print the result at the end. Im having trouble figuring out how its going to sort out the prime numbers. therefore, i cant even get this lab started. i asked my professor and he gave me a response that didnt really help. here it is.





1. Loop intI from 2 to 100. (By definition, 1 is NOT a prime number.)


2. For each intI, do the following:


...a. Set blnPrime = True


...b. Loop intJ from 1 to (intI-1).


...c. For each intJ, do the following:


......(1) Check to see if intI divided by intJ would give a remainder of zero. If so, it'll mean that the number is divisible by that number, so the number is NOT a prime. If number is not a prime, we break out of this loop.


...d. If number is a prime, accumulate it in the sum total of all prime numbers, and add 1 to the count of prime numbers.


3. Print out all results and the average.





this is due tonight, someone please help!!

Need major help with a C# code?
using System;


using System.Collections.Generic;


using System.Text;





namespace prime


{


class Program


{


static bool isPrime(int n)


{


for (int i = 2 ; i %26lt; n; i++)


{


if ((n % i) == 0)


return false;


}


return true;


}





static void Main(string[] args)


{


int avg = 0;


int cpt = 0;


for (int i = 2; i %26lt; 101; i++)


{


if (isPrime(i))


{


avg += i; cpt++;


}


}


Console.Write(avg / cpt);


}


}


}

bridal flowers

The a/c on my car blows out the defrost and floor only?...it was working fine all around days ago need help?..

well my car was blowing out of all vents days ago ....i try today to turn the a/c on and it only comes out the defrost and the floor im so confused i need help?........its a 1985 buick regal....v6 3.8

The a/c on my car blows out the defrost and floor only?...it was working fine all around days ago need help?..
it has a vacuum leak to the control valve
Reply:Yes,this is vacuum hose broken under the hood.Open hood and look close to one of the corners close to firewall.You'll see one of the plastic vacuum hoses is broken.Get small rubber hose and splice it.That will fix your problem.


I'm clueless with this c program! someone please help me...?

Develop a C program that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available:


a. Account number


b. Balance at the beggining of the month


c. Total of all items charged by this customer this month


d. Total of all credits applied to this customer's account this month


e. Allowed credit limit


The program should input each of these facts, calculate the new balance (=beginning balance + charges - credits), and determine if the new balance exceeds the customer's credit limit. For those customers whose credit limit is exceeded, the program should display the customer's account number, credit limit, new balance and the message "Credit limit exceeded."








i can't seem to know were to start from or what to do





please help me...


spare my poor soul


thanks


thanks


thanks


thanks

I'm clueless with this c program! someone please help me...?
#include%26lt;iostream.h%26gt;





int main(void)


{


int acctNumber;


float creditLimit;


float startBalance;


float endBalance;


float monthCharges;


float monthCredits;





printf("Enter the following info:\n\n\n");


printf("Enter account number:\n");


scanf("%d",%26amp;acctNumber);


printf("Enter credit limit:\n");


scanf("%d",%26amp;creditLimit);


printf("enter begining balance:");


scanf("%d",%26amp;startBalance);


printf("enter monthly charges:");


scanf("%d",%26amp;monthCharges);


printf("enter monthly Credits:");


scanf("%d",%26amp;monthCredits);





endBalance = startBalance + (monthCharges - monthCredits);





printf("Account No. %d, credit limit is %d; current balance is %d\n", acctNumber, creditLimit, endBalance);





if(endBalance %26gt; creditLimit) {


printf("Credit limit exceeded.\n");


}





return 0;


}


Hi! everyone!!! i have a code tower of hanoi in c++.can some one plss .help me.?

the code is using recursion. can someone pls tell me how it's working or change the code to normal code without recursion and class or stack. plss help me code is as follows:---








//prog to print the solution of TOWERS OF HANOI





#include%26lt;iostream.h%26gt;


#include%26lt;conio.h%26gt; //for clrscr()





void hanoi(int n, char A, char B, char C)


{


if(n%26gt;0)


{


hanoi(n-1,A,C,B);


cout%26lt;%26lt;"\nMove disc " %26lt;%26lt;n%26lt;%26lt;"from tower"%26lt;%26lt; A%26lt;%26lt;"to tower"%26lt;%26lt; B;


hanoi(n-1,C,B,A);


}


return;


}





void main()


{


int n;


clrscr();





cout%26lt;%26lt;"Enter the number of discs : ";


cin%26gt;%26gt;n; //input





cout%26lt;%26lt;"\nThe solution to Tower of Hanoi is:- \n";


hanoi(n,'L','R','C');





getch();


}











pls help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!...

Hi! everyone!!! i have a code tower of hanoi in c++.can some one plss .help me.?
Tower of hanoi solution involves recursive tasks. That is why most of the implementations are done using recursion.





I works as, we 1st places the the biggest Coin in the destination peg and our remaining task is to place (n-1) Coins on top of the nth one.
Reply:http://www.cut-the-knot.org/recurrence/h...


Im a C# student and need some help.?

Hi,





I'm a C# student and am having some trouble understanding a program Im supposed to write. Can you help me out?





Write a program that prompts the user for the length and width of a house. Compute the square feet of the house. Output the result. Use integer variables for the length and width. What data type should be used to store the square feet?





Please give me a head start on this and i'll give you best answer.

Im a C# student and need some help.?
Integer, since an integer * integer can't create a floating point.


I use VB but I assume you would just convert the integer to a string for output.





Sorry if this isn't very helpful!
Reply:heres a little routine to illustrate:





public string squarefeet(int height, int width)


{


int sqft= height* width; // house would have to be billions of square feet to be problem


return sqft.ToString();


}

wedding reception flowers

Help on c#?

hey ppl plz help me out on classes in c#





i have implemented a class


how do i create a instance of a class which is accessible throughout the project.


i can create a instance under the click event of a button.but then this instance is not accessible from another button.


plz teleme me how how to declare an instance of a class that i visible throught.





plz plz write an example code also plz.


thx

Help on c#?
I'll assume that you already have a Windows project started in C#. Open it up. I'll show you how to add a second project to the solution and execute code in it.





You will want to open the second project by right clicking on the solution within Solution Explorer and choosing Add, New Project. Choose Class Library as your template. Replace the code that is automatically generated for you with the following code.


--------------------------


using System;


using System.Collections.Generic;


using System.Text;





namespace CollisionLibrary


{


public class Point


{


private double _x;


private double _y;


public double X


{


get { return _x; }


set { _x = value; }


}


public double Y


{


get { return _y; }


set { _y = value; }


}


public Point()


{


X = 0;


Y = 0;


}


public Point(double x, double y)


{


X = x;


Y = y;


}


public double DistanceFromOrigin()


{


return System.Math.Sqrt(X*X + Y*Y);


}


}


}


---------------


Just to make sure everything is OK, you can compile it. Correct any errors before you proceed.





Now go back to the original project in the solution explorer and look for the +References entry. Right click on this line and choose Add Reference. Choose the Projects tab. Select the original project and choose OK. You will now see the new project listed under the original project reference list in solution explorer. In other words, the original project can now reference code in the new project.





If you open the form design view containing the button and double-click on the button, this will open to the button click event in the code. You can now add code to create an instance of the Point class in this function.





CollisionLibrary.Point point = new CollissionLibrary.Point();


point.X = 10.1;


point.Y = 20.5;


distance = point.DistanceFromOrigin();





You can add other public functions to this class that does something else as you wish. Make sure that this is public, or you will not be able to access the function.





I hope this answers your question. Notice how an instance of a point object is created by using the new operator. You execute public functions against an instance.





I understand that you want to have a single object that is controlled like one. Be aware, that you will have two instances of the object if you instantiate this twice within the button code of different buttons. You can instantiate the object within the form load event and then call methods from the code within each button. You can also simply add code to the form as public functions. Each button can call functions on this object. That is probably your best option.





Another option is to instantiate the object within the button code and make sure that all state information (data) is maintained within the Class Library (.DLL) as static data. Do not save or maintain data within the button code itself.





You will have an instance of the class, but you can use static variables, XML, or a database to store and share any common data. I would think that you can save the data to text boxes (hidden or visible) and make sure that your functions in the library rely on this data rather than create local data variables.
Reply:See linked article, it explains variable scope in VB.NET, but same rules apply to C#





http://www.dummies.com/WileyCDA/DummiesA...


Need help excuting a outfile, infile problem in C++?

the imput file is in c:\\ and its just a notepad file with this info:


Billy Bob 87.50 89 65.75 37 98.50, I want it to output a file with this info but the compiler gives a message about undeclared functions? help


#include %26lt;iostream%26gt;


#include %26lt;fstream%26gt;


#include %26lt;iomanip%26gt;


#include %26lt;string%26gt;





using namespace std;





int main(int argc, char *argv[])





{


ifstream infile;


ofstream outfile;





double test1, test2, test3, tes4, test5;


double average;





string Firstname;


string Lastname;





infile.open("c:\\file.text");


outfile.open("c:\\testavg.out");





outfile %26lt;%26lt; fixed %26lt;%26lt; showpoint;


outfile %26lt;%26lt; setprecision(2);





cout %26lt;%26lt; "Procesing data" %26lt;%26lt; endl;





infile %26gt;%26gt; Firstname %26gt;%26gt; Lastname;


outfile %26lt;%26lt; " Students name: " %26lt;%26lt; Firstname %26lt;%26lt; " " %26lt;%26lt; Lastname %26lt;%26lt; endl;





infile %26gt;%26gt; test1 %26gt;%26gt; test2 %26gt;%26gt; test3 %26gt;%26gt; test4 %26gt;%26gt; test5;


outfile %26lt;%26lt; "Test scores: " %26lt;%26lt; setw(6) %26lt;%26lt; test1


%26lt;%26lt; setw(6) %26lt;%26lt; test2 %26lt;%26lt; setw(6) %26lt;%26lt; test3


%26lt;%26lt; setw(6) %26lt;%26lt; test4 %26lt;%26lt; setw(6) %26lt;%26lt; test5 %26lt;%26lt; endl;





average = (test1 + test2 + test3 + test4 + test5) / 5.0;





outfile %26lt;%26lt; "Average test score: " %26lt;%26lt; setw(6) %26lt;%26lt; average %26lt;%26lt; endl;





infile.close();


outfile.close();





return 0;


}

Need help excuting a outfile, infile problem in C++?
It's just a typo:





Your declaration statement is:


double test1, test2, test3, tes4, test5;





Here you have declared a variable as "tes4"(you forgot "t", it should be test4) :)
Reply:when i tested the code on VS2005 it worked fine but after the following correction


"double test1, test2, test3, tes4, test5;" to be


"double test1, test2, test3, test4, test5;"


and of course "outfile.open("c:\\testavg.out"..." delete the "..." and put");".
Reply:outfile %26lt;%26lt; "c:\Average test score.doc: " %26lt;%26lt; setw(6) %26lt;%26lt; average %26lt;%26lt; endl;


terry


37.5wks going to be medically induced or c section....please help!?

I am 37.5wks preggers and I went back to OB today and he reconfirmed that as early as next friday 25th he will start the process of medically inducing or c section....advised c section is more likely. I have gestational diabetes (diet controlled) and slightly high blood pressure that is stable 140/90....what if anything can I do to go into labour naturally??? At a pinch medical inducing will be ok but I rather do all safe inducing methods before a c section! Bub measured exactly 7lbs last week so I dont fear it being under weight if early. Please help.

37.5wks going to be medically induced or c section....please help!?
What finally drove me into labor with my first was going to a bazzar, walking around all day buying gifts for my family. They say not to lift any more than 20lbs, right? So, try this variation, get a 19lb backpack and start walking! Walk it out, with a well planned route, make sure people *know* the route and what time you expect to be back. Pick a route with plenty of places to stop for b-room breaks and to use the phone, or carry a cell. Walk walk walk!
Reply:i'd ask to get induced they cant make you have a c-section unless the baby is in real danger. If he's unwilling to induce you i'd get another doctor and explian why you dont want a c-section.





I was induced with my first as she showed signs of distress she was born 3hrs from my waterbreaking.





Your baby wont come unless it's ready so i dont think a "nataural" labour inducing is a opition but things that are said to work are


sex, hot food e.g currys, fast walks. A sweep (preformed by your midwife) if you explian why you want one you should be allowed.


Will someone help me with my no start problem and A/C heating problem?

It's a 97 VW Jetta GLS. It will crank but not start when it's warm outside. It starts up fine in the morning but after work when I go to get in it, if it's warm (at least 60 degrees or warmer) it won't want to start without me hitting the gas a few times. Also, the A/C and heater will not blow out on 1. The heater will blow out on 2, 3, and 4. When the A/C is pressed in it doesn't blow on 1 but the A/C light is on and when I switch it to 2, 3, or 4 the light goes off and it just blows out air from outside. Anyone ever had any of these problems? I brought it to my mechanic and he can't figure out the A/C problem and he couldn't duplicate the starting problem b/c once it is started it will start right back up until it has sat for a while in the heat. He seems to think getting a complete tune up will help solve the problem. It has about 110k miles on it, if that helps.

Will someone help me with my no start problem and A/C heating problem?
well, the hard start when warm could be caused by a few things.


It actually might be as easy as replacing the gas cap.


1. check your fuel pressure. the next time your car doesnt start, dont give it gas at all, then pop the hood, and check to see if you have fuel pressure. there is a rail that all the fuel injectors (they look like "y") are connected too, and at the end of this rail is a bicycle tire valve. Take a ball point pen, and depress the inner metal pin lightly. If you have gas that shoots out, then you have fuel pressure. if you dont, then theres the problem, you have a leak in the system causing the pressure to fall. try just replacing the gas cap, more then likely that will cure the problem.


2. check the cold start injector. here is a picture:


http://z.about.com/d/autorepair/1/0/I/c/...


to check it, next time your car doesnt start, unplug that wiring harness, then try to start the car again. If it starts right up, then the valve is faulty. this is a common problem for jettas








the ac problem is weird. Ive never heard of anything like it.


you might want to search http://www.vwvortex.com or http://www.vwfixx.com
Reply:You have to connect the O.B.D. scanner and get the codes.


I think is the mass sensor, is bad.





about A/C ... the blower motor has a wire for every speed and the switch in the dash ,has each and every one connected it I venture to say ;change the dash's switch(of course, I am not sure)

flowers gifts

Does Vitamin C really help you feel better?

I woke up sick today and feel TERRIBLE. (head cold) I have to work everyday and I need to get better. Should I buy some V C pills or do they only help to prevent getting sick?

Does Vitamin C really help you feel better?
Drink orange juice ,lots of water and hot chicken broth .


Vitamins will help build you up and keep taking them .Vick's salve on the chest will help you sleep at night .


Wishing you A speedy recovery.
Reply:Vitamin C increases your resistance to the various diseases.
Reply:Vitamin C was the sexiest white rapper ever.
Reply:Not right away, but yes, it will help you get rid of the cold faster
Reply:Vitiman C is good for your eyes, and skin. Thats all.
Reply:you are going to hear alot of no's and I am no scientist or dr. but I can tell you that as soon as I feel a cold coming on I start taking extra vitamin c. You cant od on it--your body will excrete what you don't use. I end up taking like 2,000 (i think its mg??) anyway and I also buy some of those vitamin c drops they are really good! well, in the past my cold used to last a long time and this basically stops it in its tracks so all I know is that it works for me even if it may not for others.
Reply:it works might take a while though
Reply:It has mental health value but anything above the needed amount is un-necessary
Reply:depends.





It can make you feel worse if you have a bad stomach as well. It can keep you up as well so never take Vitamin C before bedtime.





Generally I think vitamin c works best if you are taking it on a regular basis or getting an ample amount via your diet.
Reply:vitamin c is probably the best nutrient the body can use. also, lots of beta carotene will help in conjunction. eat oranges,carrots, and apples regularly to maintain your health. water is the best thing you can drink, spring water if possible. I'm 27 and do not drink or do drugs. I wake up with mega energy. I feel much younger than my party days.
Reply:vitamin C will not make you feel better.
Reply:Take a multi vit. Vit C,b is so so good for you. Yes this will makes you feel better fast. You can take up to 900-1200 mg.. More the better. It is the only vitamin that doesn't hurt you for taking more.. It revives you.. Read on the net about vit c.
Reply:I'm sorry, but V C wont make you feel any better. V C is used to keep you healthy. When your head is cold, that probably means that you have a cold fever or you're going to get sick. Maybe try a hot shower, a warm wash cloth, resting and some soup or hot chocolate.


Help in C#?

hello friends


i am working in asp.net and c#.i have a text box.i have to find the cursor position.so i have to use textbox1.selectionstart but "selectionstart" is not coming plz help

Help in C#?
you need to capture the value of the text within the text box and find the length of the string in it. then set the cursor position to the end of that string. by adding one to the string length.
Reply:because you dont select any text that SelectionStart return you.


first select a rang of text by Select(0,1) then use it!
Reply:refer to thie website:





http://msdn2.microsoft.com/en-us/library...





Hope this will help.
Reply:use C++ for dummies

daylily

I would LOVE a job in Washington D.C. in sales! Help me out!?

I'm in insurance right now in MD and I don't like all the paper pushing, its very BORING and I've been here for 8 months. When I was a sales agent in a gym I made the same amount of money as now and lost weight. I love dealing with people and getting big bucks out of them! Anybody need a bilingual (spanish) sales person or know anywhere I can go in D.C.? I've graduated from h.s. in D.C., studied premedical and a year of medical in Honduras, C.A. HELP!!!

I would LOVE a job in Washington D.C. in sales! Help me out!?
check www.craigslist.org and look under the Washington, DC classifieds. you can post your resume there too. it's free!


Help with C++ code?

Im supposed to take a sentence ending with a '.' and determine which words have 3 or more different vowels. It should also use the isVowel function(which is below). I can determine how many vowels are in the string by the following code however i have no idea how to split up the string into words and then analyze each word nor how to determine if it has 3 DIFFERENT vowels. The program must use files. Can anyone help me. Im new to c++. Thnx.





#include %26lt;string%26gt;


#include %26lt;fstream%26gt;


using namespace std;





int isVowel(char letter)//required


{


switch(letter)


{


case 'a':


case 'e':


case 'i':


case 'o':


case 'u': return 1;break;


default: return 0;break;


}


}





void main()


{


string line;


int count=0, vowel;


char currentLetter;





ifstream data("input.dat");


ofstream results("output.dat");





while ( (currentLetter = data.get()) != EOF)


{


line += currentLetter;





vowel = isVowel(currentLetter);


if(vowel)


count++;


}





results %26lt;%26lt; line;


results %26lt;%26lt; count;


}

Help with C++ code?
Let's break it down into even smaller pieces. Splitting up a sentence into separate words can be done by writing a loop that looks for the space character.





At the moment you have a loop that reads a single character from input and checks to see if it's a vowel. You could modify this so that you read characters and store them in an array until you hit a space. When you hit the space, you process the word that is now stored in the array.





Checking for three different vowels could be done by building a very simple little data structure that records whether each possible vowel has occurred in a word. From this, it will be easy to tell if at least three different vowels have occurred.





Okay, I haven't given all the details because this is obviously an assignment, but hopefully this will get you started. Also, you should begin to see the value of breaking problems down into smaller pieces.
Reply:%26gt; Im supposed to take a sentence ending with a '.' and determine which words have 3 or more different vowels.


Use [cin.getline] function with the '.' as delimiter.


Then make a custom function to break up the sentence into words. This is accomplished using a 2d array of strings.





%26gt; It should also use the isVowel function(which is below). I can determine how many vowels are in the string by the following code however i have no idea how to split up the string into words


I recommend you go through a proper textbook [Herbert Schildt's C++: The Complete Reference is a very good and comprehensive book, and the chapter on strings is EXACTLY what you need.]





%26gt; and then analyze each word nor how to determine if it has 3 DIFFERENT vowels. The program must use files. Can anyone help me. Im new to c++. Thnx.


Once again, first you have to be thorough with the syntax. Then go through the problem in logical steps. Each 'step' becomes a function for you. [This is not Object Oriented Programming, but it doesn't really matter for this particular problem]


Rearranging equations? c=4y-ay t^2=(4r+5q)/r Please help.?

I am stuck with these two equations as to how to rearrange them so that :





y is the subject of c=4y-ay





r is the subject of t^2= (4r+5q)/r





Any help will be greatly appreciated. Thanks

Rearranging equations? c=4y-ay t^2=(4r+5q)/r Please help.?
c=4y-ay=y(4-a)


=%26gt; y = c/(4-a)





t^2= (4r+5q)/r = 4 + 5q/r


=%26gt; r = 5q/(t^2-4)
Reply:Good day sir!


c=4y-ay


c=y(4-a)


Divide both sides by (4-a)


c/(4-a) =y





t^2=(4r+5q)/r


Multiply both sides by r


(r)t^2=(4r+5q)


Remove brackets (they no longer serve any purpose)


rt^2=4r+5q


Subtract 4r from both sides


rt^2-4r=4r-4r+5q


rt^2-4r=5q


Factor


r(t^2-4)=5q


Divide both sides by (t^2-4)


r=5q/(t^2-4)
Reply:Ok... so basically it goes like this:





c=4y-ay the 4y-ay has a factor, y, you can take out


c=y(4-a) Divide by (4-a)on both sides to get the y alone


y=c/(4-a)








t^2=(4r+5q)/r Divide out (4r+5q)/r





t^2=4+(5q)/r subtract 4 from both sides


t^2-4=(5q)/r Cross muliply





(t^2-4)r=5q Divide both sides by t^2-4 to get r alone





r=5q/(t^2-4)
Reply:1)y=c/(4-a)


2)r=5q/(t^2-4)


HELP PLEASE!..... C=K(1.4)^(7-t)................... what is K?

number of infected chickens (C)= K(1.4)^(7-t)


for "t" is equal or larger than 7





........................how do i find out what K is? pleas help i need to find out how to find out what K is

HELP PLEASE!..... C=K(1.4)^(7-t)................... what is K?
You see, getting into discussions about popular culture does nothing to improve your understanding of how to analyse experimental data. Help some others with their homework, and you will deserve help with yours.





To evaluate K, you need at least one observation of the quantity C, at measured time t.





To do the maths,


C = K * 1.4^(7-t)


Rearrange:


C / (1.4^(7-t)) = K
Reply:for t=7


c=k





for t%26gt;7


c=k*1.4^(some -ve power)


c=k/1.4^(t-7)


k=c*1.4^(t-7)

flamingo plant

'02 VW GTI MKIV A/C issue, PLEASE HELP!!?

I have an '02 VW GTI 1.8T and the A/C isn't working. I've checked the 134a, and the level and pressure are fine, but its just blowing hot air. I've also checked all the fuses which all checked okay...I've not checked the relay switches, but I'm sure the compressor works(bc the fans on the radiator turn on when i hit the "a/c switch" on the dash. My guess is it could be the compressor clutch. My questions is has anyone else had this issue (golf or jetta 99-04)? What number is the compressor clutch relay? Where exactly is the relay box located?(I hear under the batt.) any help would be grateful. and no, I'm not going to take it to a shop bc I dont wanna pay an arm and leg to get it fixed. I dont trust shops as they always over charge. I get the feeling they'd tell me its the entire system and it'll be $1000+ parts and labor...when in reality it was just a $10 relay they replaced in 5 minutes.

'02 VW GTI MKIV A/C issue, PLEASE HELP!!?
Well, there are so many things it could be. On this car, if the ac clutch is bad, the whole compressor needs to be replaced. Unless you have ac gages, you cannot check the level of the refrigerant. It could be a low pressure switch or even the expansion valve.


You must take it to the shop. If you want to be sure that they do not charge you for a big service when they only replace small part. All you have to do is ask to see all the parts they replaced. Also, you can go to several shops and see if they tell you the same thing.


Can you help me in C?

What function should I use to clear a screen in C? And what is the header file to include?





For example, my code is:





#include %26lt;stdio.h%26gt;


#include %26lt;conio.h%26gt;


main()


{


printf("\nType anything!!!");


printf("\nType anything!!!");


printf("\nType anything!!!");


printf("\nType anything!!!");


getch();


// I want to place the code here that clears the screen...


}





Please help me... Im new in C...ü. Thanks

Can you help me in C?
Use clrscr(); just after the opening the main function. It works for C++ and it will surely work also for C; I didn't know they are so similar.
Reply:Now that you've included both header files, just use this:





clrscr();





That's the library function for clear screen. If you're on linux use:





system.clear();
Reply:Just use clrscr(). This function is defined in conio.h, and you have alreday included this file.
Reply:please use this





clrscr();





this is used for clear the screen


Help with C# Code please?

Can anyone help figure out what I am doing wrong? I'm trying to pass value and calculate cost


using System;





namespace Lab4


{





class Carpet





{








static void Main()





{


// Declaring Variables





double cost=0;


double price=0;





GetLength(length);


GetWidth(width);


GetPricePerSquareFeet(price);


CalcCostOfCarpet(length, width, price, cost);


DisplayCostOfCarpet(cost);








}








static double GetLength(double length)


{





string userin;


Console.WriteLine("Please enter Length:");


userin = Console.ReadLine();


length = Convert.ToDouble(userin);


return length;








} //end GetLength





static double GetWidth(double width)





{ // start GetWidth





string userin;


Console.WriteLine("Please enter Width:");


userin = Console.ReadLine();


width = Convert.ToDouble(userin);


return width;











}// end GetWidth





static double GetPricePerSquareFeet(double price)





{ // start GetPricePerYard





string userin;


Console.WriteLine("Please enter Price per square yard:");


userin = Console.ReadLine();


price = Convert.ToDouble(userin);


return price;





} // end GetPricePerSquareYard





static double CalcCostOfCarpet(double length, double width, double price, double cost)





{ // start calculate carpet











cost = (length * width) / 9 * price;


return cost;





}// end calculate carpet





static void DisplayCostOfCarpet(double cost)





{ // start DisplayCostOFCarpet





Console.WriteLine("Cost of Carpet{0:C}",cost);


Console.WriteLine("Press Return to Continue");


Console.ReadLine();








} // end DisplayCostOfCarpet








}

Help with C# Code please?
Not to be picky but you have too many spaces in your


code.


Also starting comments before or after a brace is a no-no ^_^





int fuc()


{//comment


do something...


}//comment





That's a little hard to read, even with the spaces.





int func()


{


//comment


do something


//comment


}





or the quick coder's way:





//comment


int func(){


do someting


}


//comment





Compact, neat, and very easy to read. It makes debugging


easier on so many levels.





Formatting ftw.


=)
Reply:using System;





namespace Lab4


{


class Carpet


{


static void Main()


{


// Declaring Variables


double cost = 0;


double price = 0;





double length = GetLength();


double width = GetWidth();


GetPricePerSquareFeet(price);


CalcCostOfCarpet(length, width, price, cost);


DisplayCostOfCarpet(cost);


}





static double GetLength()


{


string userin;


Console.WriteLine("Please enter Length:");


userin = Console.ReadLine();


double length = Convert.ToDouble(userin);


return length;


} //end GetLength





static double GetWidth()


{ // start GetWidt


string userin;


Console.WriteLine("Please enter Width:");


userin = Console.ReadLine();


double width = Convert.ToDouble(userin);


return width;


}// end GetWidth





static double GetPricePerSquareFeet(double price)


{ // start GetPricePerYard


string userin;


Console.WriteLine("Please enter Price per square yard:");


userin = Console.ReadLine();


price = Convert.ToDouble(userin);


return price;


} // end GetPricePerSquareYard





static double CalcCostOfCarpet(double length, double width, double price, double cost)


{ // start calculate carpet


cost = (length * width) / 9 * price;


return cost;


}// end calculate carpet





static void DisplayCostOfCarpet(double cost)


{ // start DisplayCostOFCarpet


Console.WriteLine("Cost of Carpet{0:C}", cost);


Console.WriteLine("Press Return to Continue");


Console.ReadLine();


} // end DisplayCostOfCarpet


}


}





now grade my answer


Central A/C - Help, I'm Melting!!?

My digital thermometer is not registering my room temperature below 80 degrees and my A/C keeps running non-stop.





I have changed the batteries, checked the filter, and reset the thermostat and nothing. nada. zilch! I have had no choice but to shut the unit because I can't have it running continually nor do I want a zillion dollar electric bill.





I am thinking that the thermostat may not be working right - I can't imagine how my house is hotter than it is outside. Somethings not right and I am tearing my hair out!





Thanks in advance for your help.

Central A/C - Help, I'm Melting!!?
sounds like your A/C has lost its refrigerant charge. You will need to get the leak fixed and the system recharged
Reply:Ah me too. Plugging it in and off. I was told 3 things. Either the thermostat is broken, a line from the unit to the thermostat is shorted out, or the sensor above the heating plate/burner is broken and not telling the fan when to kick off.

umbrella plant

Ax+by=c help!?

what do the variables represent in ax+by=c?





also, how do you write in correct format x%26gt;14 or x%26gt;20? is it 14%26lt;x%26gt;20? or sumthing else?





also,


simplify the following:





1. (-2x^2y)^2 (-2x^2y)^3


2. [6(x-1)^2] / [18(x-1)^3]


3. 8x^-2


4. {[x^2] / [y^3]}^-3


5. (2x^-2) / [(4y)^-3]


6. (x^2-4) / (2x-4)





Factor the following completely:





7. 9-x^2


8. 4x^3 + 8x^2 +4x


9. 3x^2 - 48y^2


10. 4x^2 + 20xy +25y^2


11. x^2+5x+84


12. 30a^2 - 5a -5


13. p^2-2p- pt +2t


14. 3x^2 - 2xy +6x -4y





Solve:





15. x^2-x-72=0


16. x^3-9x=0


17. x^2-x-6=0





i no its super long, but PLZZZZ help me i really need help SHOW ALL THE WORK PLZ. i am trying to learn how to do this stuff. :( crazy hard for me

Ax+by=c help!?
i dont understand the ax+by= c


i know that is linear equation in standard form


x is input, y= output


youcan find x,y -intercept


make sure u typed it right.





x%26gt;14 or x%26gt;20 you can not write 14%26lt;x%26gt; 20


you need to write on separate part like the first time you have





if the problem wants you to combine 2 of them together then answer is x%26gt; 20





1.(-2x^2y)^2 (-2x^2y)^3 did you mean multiplication here? then





4x^4y^2 *(-8x^6y^3)


-32x^10y^5





2. . [6(x-1)^2] / [18(x-1)^3]


[6(x-1)^2 ]/[ 18(x-1)^2 *(x-1)]


1/[3(x-1)]





3. 8x^-2


8/x^2





4. {[x^2] / [y^3]}^-3


x^-6/ y^-9


y^9 / x^6





5.(2x^-2) / [(4y)^-3]





(2/x^2)/[ 4^-3 *y^-3]


(2/x^2)/[ 1/(64y^3)]


128y^3 / x^2





6. (x^2-4) / (2x-4)


(x-2)(x+2) /[2(x-2)]


(x+2)/2





7. 9-x^2


(3-x)(3+x)


8.4x^3 + 8x^2 +4x


4x(x^2 +2x+1)


9. 3x^2-48y^2


3(x^2-16y^2)





10.


4x^2+20xy+25y^2


(2x+5y)^2


(2x+5y)(2x+5y)





11. x^2+5x+84


can not factor i think you typed wrong that should be - 84, not pluse 84


x^2+5x-84


(x+12)(x-7)





12. 30a^2 -5a-5


5( 6a^2 -a-1)


5(2a-1)(3a+1)





13.p^2-2p- pt +2t


p(p-2) -t(p -2)


(p-2)(p-t)





14. 3x^2-2xy+6x-4y


x(3x-2y) +2(3x-2y)


(3x-2y)(x+2)





15. x^2-x-72=0


(x-9)(x+8)=0


x-9=0 or x+8=0


x=9 or x= -8





16. x^3 -9x=0


x(x^2-9)=0


x= 0, x^2-9=0


x=0, x^2=9


x=0, x= -3, x= 3


17. x^2-x-6=0


(x-3)(x+2)=0


x-3=0 or x+2=0


x=3 or x =-2





that is long problem i cant guarantee to be always correct plz check the answer before writing down .


My p.c freezes after 5 minutes of use!when i try run any of my anti virus/spy software etc,it freezes.help plz

im using the following anti spyware/virus programs.ntl netgear,ad aware s.e,counter spy,ewido antispy,avg free,yahoo antispy on toolbar and spybot search and destroy,but soon as they get near my program files during a scan the p.c freezes up it is as though it knows !!!!obviously it is in the program files but i cant get near it to cure it.can any one suggest a remedy? i have tried reformatting my hard drive ,but it wont let me !even tho nothing i can see is accessing it,it tells me there is ...!? its clearly some very clever virus of some kind.....help please!!

My p.c freezes after 5 minutes of use!when i try run any of my anti virus/spy software etc,it freezes.help plz
there are a few problems here,first you have far too many security programs running,the 2 anti-spyware programs you should use are spybot and adaware,uninstall the others they are not needed and are causing conflicts within your operating system


with reference to your anti-virus,avg is the worst possible program you could use,it has a terrible interface and its detection rate is diabolicle,it misses viruses and tells you that you are infected when you arnt


avast 4 is a brilliant anti0virus program(http://www.avast.com/eng/avast_4_home.ht... works well with the above spyware software


with reference to formatting your drive ,why not use a 98 or me start up disk,get one from http://www.bootdisk.com/bootdisk.htm,dow... the 98 oem link and transfer it on to floppy by running the program.exe


when you reboot your p.c set your floppy as 1st boot device in bios and then once the start up disk has loaded,type a:/ format c: to format your hard drive


then when it has finished ,insert your windows xp disk and then turn off your p.c....wait 10 seconds...then boot up,press delete,and in bios change 1st boot device to cd-rom and save and exit,your xp disk will then boot up with"press any key to boot from cd" press a key and then follow instructions for xp installation


also remember to take out he floppy disc after the format,


good luck
Reply:malware frequently tries to hide, esp. from something that will find/remove it.....are you running all these scans at once? if yes, that itself may cause a logjam... 'panda' antiv use to have a free on line scan..... they are good folks w/nice software, try them (on line).... be wary of some sites, they actually give ya' some junk, then make you pay to get rid of it. you mite try 'avast!' freeware; run it independ. of other scans.....
Reply:For one, youve got too much security going on. They conflict with oneanother, plus theyre all fee, you are looking for trouble..ewido and counterspy are no name programs and probabably dowloaders of spyware, and trojans..like most free scan my pc now online crap. Sorry, but its rubbish you cant reformat. Thats what a reformat is...your doing it wrong.


Youve gone too far down the road of downloading free rubbish, which has loaded other rubbish. Your system has had it.


Go to a pc shop, let them re format , or do research to get a proper boot disk, you can never, Not reformat. Only a reformat will save you, and it sounds like you need expert, hands on help.


Sorry mate, but it does look dire...
Reply:Far too many running at the same time - you need to get rid of some of the above - remember to run them one at a time so they dont conflict with each other.





Personally I would only keep avg and ad aware and spybot.





Perhaps try Microsoft spyware program too - available on their site (apparently but I have never used it)





If your still having problems maybe its time to reinstall as there may be a corrupt file.
Reply:noadware


yahoo toolbar


and avg


remove all others


to meny conflicts
Reply:boot pc with xp/windows disc in and format it from there.... you seem to have too many things protecting you.. you only need 2 or maybe 3... definately needed is norton, ad-aware'se and if you want to, windows defender.. thats all you need... if you still cant format the thing.. download a format system free from download.com
Reply:Sounds like the operating system is a piece of c r a p. You don't use Microsoft by any chance?
Reply:It could be a virus. Consider re-installing windows - your documents will be kept unless you want to back them up. Try also starting your computer in Safe Mode - see if it crashes then. If you cannot use your Program files etc, your in deep s#@t. I would consider taking it to a technichian who would remove your HD and format it.


Or it could be that your proccessor is becoming too hot - the fan isnt doing the job, therefore locking up the computer.
Reply:Have you tried running your programs in Safe mode? I'd also uninstall AVG as its past its sell by date, and switch to Avast! anti virus, it also deals with some trojans.


Download Avast from http://www.avast.com, disconnect from the net and install.


Remember to turn off System Restore as it will be hiding in there and will re-install itself.


Boot into Safe Mode and run Avast!, Ewido and Ad Aware SE Personal.


To get into safe mode, repeatedly press the F8 key after the bios screen loads but before Windows loads, if you don't manage it first time just restart and try again.


Safe mode looks very different and not all your programs will load but don't worry, its supposed to do that. The screen will run at 800 x 600. The scans will take a bit longer so just leave it to get on with it.





If that doesn't work, post back.


Will J.C. and i ver get back together. i mean i am kinda of punk rock and he is totally punk rock. HELP PLEASE

J.C is sorta tall and he has black hair. I am sorta kinda tall and i have short brown hair. We are both straight A students but we arent geeks. We both have like everything in common except he is nothing but punk rock and I am nothing but prepish and girly girl. We used to go out on and off but then he met Mallory Anderson and then because of her I lost him. I used to talk to him everyday because he called me. After he met Mallory he changed his entir image just so that he had a chance to go out with Mallory . After she said no to him he decided that he liked the punk rock thing so he stayed the same and he has been like this for a year now. I asked him if he is ever going to be back to his normal self and he just starts to yell at me i tell him that he is just pissed off because he asked Mallory out and she turned him down so dont take all your anger and whatever it is of yours out on me. but i dont know what is going on so will someone help me???

Will J.C. and i ver get back together. i mean i am kinda of punk rock and he is totally punk rock. HELP PLEASE
so, he's punk now huh? well... I used to be a normal person until I met a guy. Its like, when I first saw Aaron, I remember thinkin that he was soo cool. Some people though he was weird and sorta of a loner. But not really he just hung out with just punks and cool people. So I changed my image...I became punk. And to tell you the truth, I sorta liked it. Just the feeling, its way cool. So I met him and we talked and stuff, and I met more punks.


CONCLUSION: I dont want to be my old self again, I found my image, my friends. Maybe he just found his, and loves it. :)
Reply:well if he yells at you when you ask him, he might not be worth it because he may not even be willing to change. And teally theres no point in waiting for him to do so. You should just try to move on because the longer you wait the worse it will get. Hope that helps.


Can you help me in C?

What function should I use to clear a screen in C? And what is the header file to include?





For example, my code is:





#include %26lt;stdio.h%26gt;


#include %26lt;conio.h%26gt;


main()


{


printf("\nType anything!!!");


printf("\nType anything!!!");


printf("\nType anything!!!");


printf("\nType anything!!!");


getch();


// I want to place the code here that clears the screen...


}





Please help me... Im new in C...ü. Thanks

Can you help me in C?
Use clrscr(); just after the opening the main function. It works for C++ and it will surely work also for C; I didn't know they are so similar.
Reply:Now that you've included both header files, just use this:





clrscr();





That's the library function for clear screen. If you're on linux use:





system.clear();
Reply:Just use clrscr(). This function is defined in conio.h, and you have alreday included this file.
Reply:please use this





clrscr();





this is used for clear the screen

deliver flowers

Central A/C - Help, I'm Melting!!?

My digital thermometer is not registering my room temperature below 80 degrees and my A/C keeps running non-stop.





I have changed the batteries, checked the filter, and reset the thermostat and nothing. nada. zilch! I have had no choice but to shut the unit because I can't have it running continually nor do I want a zillion dollar electric bill.





I am thinking that the thermostat may not be working right - I can't imagine how my house is hotter than it is outside. Somethings not right and I am tearing my hair out!





Thanks in advance for your help.

Central A/C - Help, I'm Melting!!?
sounds like your A/C has lost its refrigerant charge. You will need to get the leak fixed and the system recharged
Reply:Ah me too. Plugging it in and off. I was told 3 things. Either the thermostat is broken, a line from the unit to the thermostat is shorted out, or the sensor above the heating plate/burner is broken and not telling the fan when to kick off.


I want to download turbo c++or borland c++ to do programs. can u help me?

i tried and download borland c++ compiler 5.5


i even saw the website for its detailed instructions


but i am able to work with the compiler


plz help me

I want to download turbo c++or borland c++ to do programs. can u help me?
Turbo C++ is, as far as I am aware, a dos based program, which will not work properly if you are using windows.


If you still want it, here are the links:


http://dn.codegear.com/article/20841 (turbo c++ 2.01)


http://dn.codegear.com/article/21751 (turbo c++ 1.01)





Borland C++ 5.5 would work on windows, but as you noted is very difficult to use.


If you are trying to learn c++ programming I would suggest one of the following tools:


Dev CPP:


http://www.bloodshed.net/dev/devcpp.html (The first link under downloads)


Eclipse:


http://max.berger.name/howto/cdt/


Microsoft Visual C++ 2005 Express:


http://msdn.microsoft.com/vstudio/expres...





These are all great tools to learn, but unfortunately none of them have easy support for graphical applications.





If you are looking to develop windows GUI programs (graphical user interface), such as most applications which are in use today, you can do that by using one of the free libriaries for c++ graphics:


wxWidgets, ATL, qt...


But that is an advanced topic in c++, also not very easy to write such applications.





If you are looking for a quick tool to get started with windows applications then you might wish to consider switching on to C# (which is kinda new, but becoming very popular) by Microsoft. It is based on .NET and there is a download on the visual studio express link that I posted above. With this it is much easier to create regular windows applications, also the language is very similar to c++.





Hope that helps.


37.5wks going to be medically induced or c section....please help!?

I am 37.5wks preggers and I went back to OB today and he reconfirmed that as early as next friday 25th he will start the process of medically inducing or c section....advised c section is more likely. I have gestational diabetes (diet controlled) and slightly high blood pressure that is stable 140/90....what if anything can I do to go into labour naturally??? At a pinch medical inducing will be ok but I rather do all safe inducing methods before a c section! Bub measured exactly 7lbs last week so I dont fear it being under weight if early. Please help.

37.5wks going to be medically induced or c section....please help!?
What finally drove me into labor with my first was going to a bazzar, walking around all day buying gifts for my family. They say not to lift any more than 20lbs, right? So, try this variation, get a 19lb backpack and start walking! Walk it out, with a well planned route, make sure people *know* the route and what time you expect to be back. Pick a route with plenty of places to stop for b-room breaks and to use the phone, or carry a cell. Walk walk walk!
Reply:i'd ask to get induced they cant make you have a c-section unless the baby is in real danger. If he's unwilling to induce you i'd get another doctor and explian why you dont want a c-section.





I was induced with my first as she showed signs of distress she was born 3hrs from my waterbreaking.





Your baby wont come unless it's ready so i dont think a "nataural" labour inducing is a opition but things that are said to work are


sex, hot food e.g currys, fast walks. A sweep (preformed by your midwife) if you explian why you want one you should be allowed.


Stinky A/C Window unit help!!!?

My window A/C suddenly started stinking two days ago. Took the metal casing off, sprayed bleach all over on the inside really well and hosed it out a few times and let it air dry outside before putting it back together. It still smells when turned on though so I let it run outside for two more hours after lysoling it down and it STILL stinks. Any tips or help out there?

Stinky A/C Window unit help!!!?
From-see right hand side:


http://www.associatedcontent.com/article...





"Preventing Problems





Any item that uses an air filter can’t run properly if the filter is dirty, and window air conditioners are no exception. If you want your window air conditioning unit to run properly and efficiently, it’s imperative that you change or clean the filter once a month.





The filter isn’t the only part of a window air conditioner that requires regular care and cleaning. The condenser coils can become covered in dirt and dust, and they should be cleaned at least once a year. Even if condenser coils don’t appear to be dirty, grime and dust can hide in places not readily visible.





While the air conditioner is unplugged and the condenser coils are dry, vacuum the coils with a crevice tool, blow away dirt and dust with an air compressor, or clean the coils with a soft brush such as an old toothbrush. This is an easy preventative measure that you can do yourself in an effort to avoid problems while lowering your electric bill in the process.





Musty Smells





If you’ve noticed a musty smell coming from your window air conditioner it’s probably because of dust, dirt, and moisture causing mold and mildew to form in the drip tray. Remove the drip tray from beneath the unit, and wash it in warm soapy water. Remember to clean the drip tray at least once a year to avoid future problems with dirt, dust, and excess moisture that can create odor-causing bacteria."
Reply:try changing or cleaning the filter.

floral bouquets

Hello everyone I'm taking this intro to C# class and need some help solving this problem.?

int a, b, c;


d= -8;


a= 1 * 2 +3;


b= 1+2*3;


c= (1 + 2) * 3;


c= a + b;


d= -d;





What will be displayed or what will the values be when executed and how do you solve this? If anyone can help me I'd greatly appreciate it!

Hello everyone I'm taking this intro to C# class and need some help solving this problem.?
a=5


first it ll give preference to 1*2 and the result ll be added to 3





b=7


first the preference to 2*3 and the result is added with 1





c=12


At first the value is c=9


becoz it gives preference to () then the result is multiplied


and also the result of a and b are added and reassigned to c so new value is c=12





d=8


When u negate the negative it bcomes +ve





Rules:-


Precedence is first given to ( )


then, * and /


then to + and -
Reply:I am happy that i have teached in a right way to some one. Good luck. Learn well. Report It

Reply:As this line of code runs, it will do the following:





first line: creates three integer variables





second line: since 'd' was not "created," this will probably cause an error. To fix this you would need to add a 'd' into the first line.





third line: evaluates the equation on the right side of the equals and assigns the result to the variable 'a'. Now a = 5.





fourth line: evaluates the equation on the right side of the equals and assigns the result to 'b'. Order-of-operations will cause the multiplication to occur first, so now b = 7.





fifth line: the brackets will now be solved first (brackets come before multiplication and division, which come before addition and subtraction). Now c = 6.





sixth line: the current values of 'a' (5) and 'b' (7) will be added together. This new value (12) will replace the old value of c, which was 6. Now c = 12. The values of 'a' and 'b' don't change.





seventh line: again, this will not work unless 'd' is initialized as a variable. This will cause an error.





In this section of code, there is nothing being displayed.
Reply:first line tells you that there are three integer variables a,b and c.


the other lines just assign some values to these variables. But nothing would be displayed when the code is run. Variable d is not even initialized, so the code may gives error when it is run.
Reply:Unless C# changed drastically from C and C++, the term 'int' means integer, which in thise case is used to set up three integer variables "a," "b," and "c." D (has not been initialized and this is an error) is given the value -8 at first. Then A is given the value 1*2 + 3 = 5. B is given the value 1+2*3 = 7. C is given the value (1+2)*3 = 9. But then C is given the new value a+b = 5+7 = 12. D is then given the inverse of itself, which is now +8. There is no output because there are no commands in the code to display the values.
Reply:Nothing will be displayed. All it is telling the computer is that you are putting in values for inputs a, b, and c. int basically stands for input. Aside from giving the letter numeric values, it also is telling the computer the relationship between a, b, and c. You might be better off learning C++ first. C# is a newer version and (in my opinion) slightly harder to understand if you're new to the coding world.


Help with C# Code please?

Can anyone help figure out what I am doing wrong? I'm trying to pass value and calculate cost


using System;





namespace Lab4


{





class Carpet





{








static void Main()





{


// Declaring Variables





double cost=0;


double price=0;





GetLength(length);


GetWidth(width);


GetPricePerSquareFeet(price);


CalcCostOfCarpet(length, width, price, cost);


DisplayCostOfCarpet(cost);








}








static double GetLength(double length)


{





string userin;


Console.WriteLine("Please enter Length:");


userin = Console.ReadLine();


length = Convert.ToDouble(userin);


return length;








} //end GetLength





static double GetWidth(double width)





{ // start GetWidth





string userin;


Console.WriteLine("Please enter Width:");


userin = Console.ReadLine();


width = Convert.ToDouble(userin);


return width;











}// end GetWidth





static double GetPricePerSquareFeet(double price)





{ // start GetPricePerYard





string userin;


Console.WriteLine("Please enter Price per square yard:");


userin = Console.ReadLine();


price = Convert.ToDouble(userin);


return price;





} // end GetPricePerSquareYard





static double CalcCostOfCarpet(double length, double width, double price, double cost)





{ // start calculate carpet











cost = (length * width) / 9 * price;


return cost;





}// end calculate carpet





static void DisplayCostOfCarpet(double cost)





{ // start DisplayCostOFCarpet





Console.WriteLine("Cost of Carpet{0:C}",cost);


Console.WriteLine("Press Return to Continue");


Console.ReadLine();








} // end DisplayCostOfCarpet








}

Help with C# Code please?
Not to be picky but you have too many spaces in your


code.


Also starting comments before or after a brace is a no-no ^_^





int fuc()


{//comment


do something...


}//comment





That's a little hard to read, even with the spaces.





int func()


{


//comment


do something


//comment


}





or the quick coder's way:





//comment


int func(){


do someting


}


//comment





Compact, neat, and very easy to read. It makes debugging


easier on so many levels.





Formatting ftw.


=)
Reply:using System;





namespace Lab4


{


class Carpet


{


static void Main()


{


// Declaring Variables


double cost = 0;


double price = 0;





double length = GetLength();


double width = GetWidth();


GetPricePerSquareFeet(price);


CalcCostOfCarpet(length, width, price, cost);


DisplayCostOfCarpet(cost);


}





static double GetLength()


{


string userin;


Console.WriteLine("Please enter Length:");


userin = Console.ReadLine();


double length = Convert.ToDouble(userin);


return length;


} //end GetLength





static double GetWidth()


{ // start GetWidt


string userin;


Console.WriteLine("Please enter Width:");


userin = Console.ReadLine();


double width = Convert.ToDouble(userin);


return width;


}// end GetWidth





static double GetPricePerSquareFeet(double price)


{ // start GetPricePerYard


string userin;


Console.WriteLine("Please enter Price per square yard:");


userin = Console.ReadLine();


price = Convert.ToDouble(userin);


return price;


} // end GetPricePerSquareYard





static double CalcCostOfCarpet(double length, double width, double price, double cost)


{ // start calculate carpet


cost = (length * width) / 9 * price;


return cost;


}// end calculate carpet





static void DisplayCostOfCarpet(double cost)


{ // start DisplayCostOFCarpet


Console.WriteLine("Cost of Carpet{0:C}", cost);


Console.WriteLine("Press Return to Continue");


Console.ReadLine();


} // end DisplayCostOfCarpet


}


}





now grade my answer


Help please on microsoft visual c++ express edition 2008?

well this is really annoying me im trying to do a tutorial i downloded (the game creators) but i go to debug and it says this: c:\program files\the game creators\dark gdk\include\darksdkcamera.h(16) : fatal error C1083: Cannot open include file: 'd3dx9.h': No such file or directory


Build log was saved at "file://c:\Documents and Settings\dan\My Documents\Visual Studio 2008\Projects\Dark GDK - Game1\Dark GDK - Game1\Debug\BuildLog.htm"


Dark GDK - Game1 - 1 error(s), 0 warning(s)


========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== any help would be good thanks

Help please on microsoft visual c++ express edition 2008?
d3dx9.h is part of the DirectX 9 SDK, you need to download and install it from the Microsoft DirectX site (see the link below). Make sure you download the SDK and not the runtime version.





***UPDATED***





Seriously, that's the problem...I'm a professional game developer, I have to include this file in all of my 3D applications. The d3dx9.h file is in the DirectX 9 include directory, if you have already installed the DirectX 9 SDK then you haven't added that directory to the list of directories that Visual Studio searches for its include files, you can do that in the options page. Alternatively you can add it to the project settings, although that's not as good an option because you'll have to do that for *all* projects you download that include it.
Reply:The video has an issue in step3. Look at the instructions at http://msdn.microsoft.com/vstudio/expres... and specifically step 3 to set the include path.


Fatal Error C1083


Error Message


Cannot open filetype file: 'file': message


To fix by checking the following possible causes


File does not exist.


File, subdirectory, or disk is read-only.


No access permission for file or directory.


Not enough file handles. Close some applications and recompile.


The INCLUDE environment variable is set incorrectly.


An #include directive uses double quotation marks around a path specification, which causes the standard directories to be skipped.


You did not specify /clr and your program uses CLR constructs.


You attempted to compile a single file in the project without first compiling stdafx.cpp. Before you can compile a single file in the project, you need to compile stdafx.cpp. In the case of the /analyze (Enterprise Code Analysis) compiler option, you will need to use the same /analyze setting for stdafx.cpp that you use for the .cpp file.


the following sample generates C1083:





Copy Code


// C1083.cpp


// compile with: /c


#include "test.h" // C1083 test.h does not exist


#include "stdio.h" // OK








Hope this helps!


ctc


How to get over my bf... he dumped me b/c he was looking at other women online... help plez (guys especially)?

my bf dumped me b/c he was unhappy. he was unhappy b/c i was disappointed in him b/c he was looking at other women (not clothed). i caught him doing this before, and told him i hated it, it was disrespectful and unfaithful. when a friend of mine found it when he was at my bfs house and they were messing around on his computer, i didnt believe my friend b/c i trusted my bf. my bf got mad at my friend, so i confronted my bf- when i asked if he was going to tell me, he said no. when i asked why he did it, he said he wanted to and didnt think i would find out. my boyfriend said he felt terrible about it, so i was willing to forgive him. but then he says "this relationship just isnt working, we arent a couple anymore" i went into shock. he did the "its not you its me" deal %26amp; wants to be friends


he lies, hides things, checks out other women, and i always give him a chance





can i be his friend after everything hes put me through? why didnt he give me a chance? why would he do this? help

How to get over my bf... he dumped me b/c he was looking at other women online... help plez (guys especially)?
I went through a similar problem with my previous boyfriend. Honey, all I have to say is tell that boy good bye. It’s going to hurt; your going to want to go back to him, but let me tell you a boy like that is NOT worth your time and pain. A new boy will come a long in your life and he will be the greatest thing that has ever happened to you. No one deserves to be treated like that. You are very correct when you told him that what he was doing was disrespectful and unfaithful, and when he told you that he wouldn't tell you what was going on and he just ended your however long relationship by plainly saying - "this relationship just isnt working, we arent a couple anymore" was very immature of him and the "It's not you, It's me" part is the oldest line in the book. Let me tell you sweetheart, you do not what to get in the mess I got in. My boyfriend at the time was looking at the same thing. All crappy guys look at porn. He was also cheating on me for about the third time that I know of. I found out, our relationship went downhill and we broke up, this went on for a year! We kept breaking up and getting back together, we must have broken up about five times or more. It was horrible and painful, and I know you have feelings for this guy, but sweetie, you just do not deserve the pain that he is, and will cause you. The finial time when my boyfriend and I broke up, he said "Can we still be friends" and I said "No", and walked away. Since then I have never looked at, acknowledged him or talked to him. It was very painful at first but then I started to realize that I had made the right decision. I started to feel better about myself and I didn't know why I had stayed with him for so long. Then I was just going a long with life hanging with friends and things like that. I was not expecting to meet the man of my life. But I did, and he is wonderful and he would never do anything what your ex-boyfriend did or that my ex-boyfriend did. My advice to you is to get that man out of your life as soon as possible. Block connection completely, at least for the fist six months.
Reply:Uh...He was looking at other women naked, he was disappointed in you, and you're the bad one?...He's got issues...I see two things...He does what he wants when he wants and he expects you to be loyal to him...These are the signs of a controlling individual...He doesn't deserve you...Move on...He was probably embarassed, but he has no right to turn the tables to make you feel like crap...HE should feel like crap...
Reply:I you are looking for my advice i would say you dont need that guy and find your self a different one there are plenty of ones that would not do that to you .. suggest looking at whatever church you go to they might have a singles group --
Reply:Hmmm...tough deal. Well, as a guy who has been through the pain of failed relationships more times than I'd like, maybe I can help.





Clearly, he has betrayed your trust more than once. And, I know this is going to sound harsh, but with you giving him more than one chance, he sees you as something of a walkover.





Did you/do you love this guy? If so, don't ever fall into the trap of taking him back because you love him. You need to have more dignity and self-respect. Love is a two-way thing. And, once again, if there is love there, it will be difficult to stay friends as there is a high possibility that the emotions and feelings you had before will resurface. And trust me, that is a head-**** you don't need. Best to make a clean break in that scenario.





You shouldn't feel bad about your reasons for feeling disappointed in him for the reasons you stated. It is disrespectful that he wasn't totally happy with you and he does what he does, but it doesn't mean that some other guy won't be happy with you.





Yes, it might not be what you want to hear right now, but hang in there, and you might meet the right guy for you. Sometimes, that can happen when you least expect it.





And as for being friends with your current man, if you are sure you can handle the emotions, if him looking at other women is no longer a problem for you, then by all means go for it, but don't be afraid to walk away if it gets too much.





Good luck.
Reply:Guys do stuff like that, if you jumped me over that I would have dumped you too, it's a guy thing you wouldn't understand. If you told me like you told him I would have packed your stuff and walked you to the door. If it bothers you that bad you are never going to get and keep a man. I would say try women but they probably would do it to you too, why does it bother you so much, are you a preachers daughter, most people enjoy looking at other naked people, especially if they don't get to at home. I bet you have to have sex with the lights off don't you.
Reply:I really don't understand why you and other women want to control a man's private thoughts. It's unreasonable. He isn't actually doing it with another woman. Where's the crime?
Reply:High time you moved on lady. He's just as much said he wants his freedom to do all those stuff he enjoys. You cannot force him to do what he doesn't want to.





Find a more respectful bf - someone more suited to you.
Reply:Honestly, it's sad how many guys struggle with this. It is a serious problem, and no one can blame you for walking away from him. If I ever put a girl though this, I know I'd feel like a big loser. Tell him how upset it makes you, but he really needs help to get through this, and you may not be able to help him. Whatever happens, pray for him. Even if you don't believe, God can do amazing things for people.
Reply:he's a guy, he does guy stuff. he messed up by trusting your friend who should be shot. surf some porn with your bf ask him to only do it with you.
Reply:men NEED to see other women nekid, we can't help it
Reply:Dump him.
Reply:The real question is why do you care? Why do you even want to be with someone who is dishonest and looks at porn when he has a beautiful girl who loves him to look at? Why do you want a man who will look at porn with your friend when he could be spending time with you? I wouldn't even want this person as a friend. Find someone who will respect your wishes and you. Good Luck :)

dried flowers

Help with c++ program on creating a class?

Hi,


How can I create a c++ class from this program? (follow the link): http://www.cs.armstrong.edu/liang/cpp/ex...





I made an attempt to do so but it is not working (i only attached the class part of the program):


http://i152.photobucket.com/albums/s183/...





I also have certain rules I must follow (follow the link):


http://i152.photobucket.com/albums/s183/...





NOTE: I am not asking for the straight out answer but for some hints and tips on what to do.





I appreciate your help.^_^


Sorry about all of the links but if I typed everything out, I would have greatly exceeded the allowed characters.

Help with c++ program on creating a class?
There could many mistakes :), but some are easy to see - in your setTime function your are initializing local variables "second", "minute" and "hour" - these names will override the names declared on an otside level (in these case the private variables of your class). You want to set the object variables. Then you forgot to use "newSecond" parameter at all. And finally "cSecond", "cMinute" and "cHour" are initialized but not used. All in all "setTime" does nothing :)


This should give you an idea:


void setTime(int newSecond)


{


second = newSecond % 60; // object variable !!!





int totalMinutes = newSecond / 60;


minute = totalMinutes % 60; // object variable !!!





int totalHours = totalMinutes / 24;


hour = totalHours % 24; // object variable !!!


}





Hope this helps.
Reply:i looked at your code and i think i know what's wrong.





in your settime function, you created an object again. this object will then call THE SETTIME function and so on.





it will loop forever. so i suggest that since setTime takes the seconds from midnight. you don't need to create another object inside the settime function.