Sunday, August 2, 2009

A 46.2 g sample of copper is heated to 95.4°C and then placed in a calorimeter containing 75.0 g water at 19.6

A 46.2 g sample of copper is heated to 95.4°C and then placed in a calorimeter containing 75.0 g water at 19.6°C. The final temperature of the metal and water is 21.8°C. Calculate the specific heat capacity of copper, assuming that all the heat lost by the copper is gained by the water.





Note: Please double check the number of significant figures.





_________J/g·°C

A 46.2 g sample of copper is heated to 95.4°C and then placed in a calorimeter containing 75.0 g water at 19.6
46.2 ( 21.8 - 95.4 ) x specific heat =


= - 75 ( 21.8 - 19.6 ) x 4.186





- 3400 x specific heat = -690.69


specific heat copper = 0.203 J/g°C


Mad Hard C++?

I'm having trouble with some C++ code for my engineering class. I need to pass these two values, t and oldcd, between a void function and a single result function. Anyone know what's going on in this code?





void eulers (double patcharea[],double releaseconst,double patchdosage,double decayconst,double weight[],double metaconst,double%26amp; t)


{double newcd,oldcd,counter,integral;


oldcd=0;


for(t=0;t%26lt;=100;t++)


{


newcd=oldcd+(yprime(patcharea,releasec...


oldcd=newcd;


counter+=newcd;


cout%26lt;%26lt;newcd%26lt;%26lt;endl;


}


integral=counter/100.;


cout%26lt;%26lt;"The integral calculation is "%26lt;%26lt;integral%26lt;%26lt;endl;


}





double yprime (double patcharea[],double releaseconst,double patchdosage,double decayconst,double weight[],double metaconst,double%26amp; t,double%26amp; oldcd)


{double ans;


ans=((patcharea[0]*releaseconst


*patchdosage*exp(decayconst*t))/weight...


return an

Mad Hard C++?
Yahoo answers truncates long lines that do not have any white space, your call to yprime() has suffered that fate:


"newcd=oldcd+(yprime(patcharea,release...


so it is a little difficult to tell what the problem is. Adding some spaces would let the line be wrapped, or you could put line breaks in yourself. e.g.


newcd=oldcd+(yprime(


patcharea,


releasec...





I'm a little (OK, a lot) out of practice, but I think you might look carefully at how t is being used, since it was passed by reference to eulers() and then again by reference to yprime() I wonder if there could be some dereferencing problem?
Reply:void eulers (double patcharea[],double releaseconst,double patchdosage,double decayconst,double weight[],double metaconst,double%26amp; t)


//


//This line list the parameters for the function eulers


//


//


{double newcd,oldcd,counter,integral;


//


//declaring some double variables


//


oldcd=0; // setting the value of oldcd to 0


//


//


for(t=0;t%26lt;=100;t++) // this will cycle until t = 100


{


newcd=oldcd+(yprime(patcharea,releasec...


//


// assigns the value of the evaluated expression to newcd, old cd during each loop iteration.


//


oldcd=newcd;


counter+=newcd;


// gives counter the value of counter+newcd, this is just differnt //syntax, for counter = counter + newcd;


cout%26lt;%26lt;newcd%26lt;%26lt;endl;


//


// outputs newcd value to screen, and ends current line


//this will repeat every t cycle for t%26lt;=100


}


//After t cycles integral will be evaluated with the t-th value of //counter from the previous for loop


integral=counter/100.;


cout%26lt;%26lt;"The integral calculation is "%26lt;%26lt;integral%26lt;%26lt;endl;


//


//outputs The integral calculation is (whatever integral is) to //the screen, new line.


}





//Voids do not return a value





double yprime (double patcharea[],double releaseconst,double patchdosage,double decayconst,double weight[],double metaconst,double%26amp; t,double%26amp; oldcd)


{double ans;


ans=((patcharea[0]*releaseconst


*patchdosage*exp(decayconst*t))/weight...


return an





//evaluates the expression than return the double an
Reply:Mad hard? A ghetto engineer wannabe.


Double Recipe?

you double the recipe but please try to do it liek this


EXAMPLE: WRONG 1/6 c. RIGHT 2Tbsp + 2 tsp!


thank you





2/3 c. brown sugar


3/4 c. sugar


1 1/2 c. flour


2 tsp soda


1/3 c. shortening


1 T. baking soda


3/8 c. nuts 1 1/2 tsp. vanilla

Double Recipe?
that's a bit complicated. you need to get the information for how many T/t in a cup and all that....
Reply:1-1/3 c. brown sugar


1-1/2 c. sugar


3 c. flour


1 Tb. %26amp; t tsp. soda


2/3 c. shortening


2 Tb. baking soda (what was the OTHER SODA???)


3/4 c. nuts


1 Tb. vanilla
Reply:It would be good experience for you to do it.


I will start you out....


2/3 c.brown sugar...double ....1 1/3 cups...and there are 3 tsp. to 1 Tbsp.


I can't double click n open drives...pls help?

everytime i try to double click,i get the msg "cannot find script file c:\IISDLL.dll.vbs"...i had deleted this file thinking it was malicious...even while scanning, my avg home edition detected this file to be a threat...now i need to right click n open the drives....how do i get it back to normal??

I can't double click n open drives...pls help?
If restarting the PC doesn't solve the problem, try to restore the computers setting to an earlier time by pointing to:





Start\ Programs\ Accessories\ System tools\ System Restore!





You have to restore your computer's setting to the last time it was fine! Find a bold number on the system restore calender and follow the wizard...





After all, if it couldn't solve the problem, reinstalling Windows would help!
Reply:You have a VIRUS. Format and reinstall, or try using system restore and turn your computer back a month or so.
Reply:If you delete the file, of course the program cannot find it when needed. The file is infected if AVG detected it as a threat. You need to add the file back. You can try to search for the file in another computer, copy it and put it to the directory as searched from the other computer. If that doesn't work, you have to reboot windows.





Antivirus programs should be able to quarantine the file without deleting it. You should delete the file only if the antivirus program cannot do so and you are sure that the file is not used.





Hope that help
Reply:u have to reinstall it

hawthorn

How can I tell my computer to save int "G" not into "C" any more because is full?

My computer has 120 gigs of memory with 2 fisical hard drives. Now when I double click my computer it shows 4 hard drives C,D,E,%26amp;G.(c=10gigs,D=50 gigs,E=0 gigs %26amp; G=80 gigs).


I get a window that says my computer is low on space because is saving everything into C wich only has about 200 mb left.


How can I combine c%26amp;D or E%26amp;G so i have more memory.


If I try making my g a master and C the slave the computer won't start because the Operation System is saved in C ?


Can any one help me pls?

How can I tell my computer to save int "G" not into "C" any more because is full?
Try partion magic etc. Its an difficult subject to cover when you have probs. These links should be of some use.





Hope this helps.





Good Luck.
Reply:Uhhh...Save as? Report It

Reply:You can merge partitions with a 3rd party hard drive partitioning tool, I have used Partition Magic to accomplish this http://www.symantecstore.com/dr/sat1/ec_...


I can't able to open any drive by double click, its open by first right click then open.?

When i double click on any drive it shows: Loading script "c:\MS32DLL.dll.vbs" failed (Acces is denied.).

I can't able to open any drive by double click, its open by first right click then open.?
sounds like you have a malware





http://forum.soft32.com/win4/MS32DLL-dll...


Choose those statements that are true about the two best resonance structures for the molecule H−C−N.?

Choose those statements that are true about the two best resonance structures for the molecule H−C−N.





a) There are a total of ten valence electrons in each of these resonance structures


b) The best resonance structure has a double bond between the carbon and nitrogen atoms


c) Neither resonance structure has a single bond between the nitrogen and hydrogen atom


d) The best resonance structure has a triple bond between the carbon and nitrogen atoms.


e) The best resonance structure has zero charge on nitrogen

Choose those statements that are true about the two best resonance structures for the molecule H−C−N.?
I would say C, D, and E are the best answers.


C:\Documents and Settings?

Ok i need your advice, i have windows Xp Pro (SP2)


when i go to my C: Drive, and i go in the documents and settings, i double Click on "Raffi" which is me, or the user!


when i double click it, an error dialog box appears


and it says





"C:\Documents and Settings/Raffi is not accesible"





"acces is denied"





what is my Custom made computer telling me!!??





obviosuly when i do the same thing in my D; Drive, it lets me go in that folder, but for some reason, not with the C: Drive!





any ideas...





i know you can help me out, or with a little assitance!





thank you.

C:\Documents and Settings?
C:\Documents and Settings/Raffi is not accesible





try writing it from this / to this \





C:\Documents and Settings\Raffi\*.*
Reply:Are you currently signed in as the admin.? The only thing I can think of is if you are not signed in as admin, and through the admin, accessibility is turned off to other users then it may not let you in. Just a wild guess here.
Reply:Do you have administrator access? if not, you wont have access to this part of the computer

marguerite

Cannot open C Drive - is it a virus?

When I try to open my C: drive....it cannot be opened by the usual normal double click. A message comes up stating "Please go to control panel to install and configure system components". Whats this? is it a virus?


To open my C drive I right click it and I see, Open, Autorun and a strange word 'òª¿(O). I press Open and see the contents of C Drive. From where did autorun and 'òª¿(O) come from. Is this part of a trojan virus that I had on my PC. How to clean up?

Cannot open C Drive - is it a virus?
run a thorough scan in the system i.e registry, spyware, etc etc and try trojan removal software not antivirus software and if you can access files or programs on c drive through their shortcuts you could try and install OS i.e. repair install or you could install in d: drive and format c: drive and then again install OS in c: and uninstall os in d: by going to windows\system32. you should probably try out the instructions given by the OS when you try opening c: if all this doesnt work and if further problems occur go for formatting it.
Reply:no there's no way it's a virus
Reply:It's a trojan virus. My friend had the same problem. Update your anti-virus software.
Reply:There is nothing wrong with your computer it is simply that your CD drive motor has gone.
Reply:Sounds like the hard disk is corrupted. Reformat the hard disk and reinstall Windows.


Have you ever wondered why A,B,C,D,E,F,G,& H are the letters used to define Bra sizes??????

%26gt;1.(A) Almost boobs!


%26gt;2.[B] Barely there!


%26gt;3.{C} Can't complain!


%26gt;4.{D} Dang!


%26gt;5.{DD} Double Dang!


%26gt;6.[E] Enormous!


%26gt;7.{F} Fake!


%26gt;8.{G} Get a Reduction!


%26gt;9.{H} Help me I've Fallen and can't get up!


Ok people this is another joke laugh pick which of the above defines you!!!!! have fun !!! Men can answer to all can answer it just for a laugh!!!! Happy 4th of July also!!!!! have a safe Hoilday weekend!!!!!

Have you ever wondered why A,B,C,D,E,F,G,%26amp; H are the letters used to define Bra sizes??????
thats good id have to go with e and the german one is great


ps i saw a girl on tv she had 52 TRIPLE Ms
Reply:also the sizes of chest of women Report It

Reply:that's OK babe but I'm a boy so we say bigger is better to a point those 52 triple ms were just discus ting Report It

Reply:no .but why is that?
Reply:OMG! LMAO SNORTHASNORTHAHA! that was awesome....geez!





snort..holzemfromfloppen..snorthaha......
Reply:LMAO!its so funny.Ill say only the


(A)Almost there!
Reply:Wow. I never thought about that before, but this actually makes perfect sense. It's really funny, too.

tropical flowers

My avatar has a double chin do u agree or is it just me??

it looks like my avatar has a double chin is it just me or do u c it too? lol

My avatar has a double chin do u agree or is it just me??
I cant tell
Reply:he looks more like he has an under-bite.
Reply:Yes I agree,definite double chin.
Reply:it does look like that.
Reply:I wouldn't have noticed, but now that you say something, yeah.
Reply:You look Irish.
Reply:Yeah who did they get to draw these avatars?
Reply:Yes I agree it does. Funny....Change the avatar



Reply:I really can't see it.
Reply:Yes I believe it does...lol..but the hair is fab.
Reply:Maybe!
Reply:I dont see it, it just looks like a fat face with a skinny neck lol.
Reply:you look like you have a chubby face, but its cute.


no double chin though!
Reply:A fat-faced avatar...that IS a FIRST!!!
Reply:i kinda see it. its hard to tell i cant see it very good.
Reply:My avatar thinks your avatar is cute!
Reply:yeah i can see it.
Reply:Yea either that or some type of dimple.
Reply:yeah it does.


OK I would like some information about this over/under 16ga. double barrel shotgun/with rifle underit #5728 ??

This gun came from Germany/ or Belgium


on right barrel it has words MATACASWAGNER there seems to line under the C, on the left barrel the word TRIER, of double barrel shotgun,


on rifle barrel the word BIG "with" N15,6gr


this gun is still in working order remember it came from WWII erro and overseas





it also contains printed numbers of 87 m/n or " with ___ devide line between this and the numbers 72 5,28 933 If anyone knows anything about this gun please send me information. remember it came out of WWII

OK I would like some information about this over/under 16ga. double barrel shotgun/with rifle underit #5728 ??
"You'll shoot your eye out"
Reply:I knew a guy in Germany into guns. He described an Austrian made weapon as you describe.





His description was a double barrel shotgun with a 30-06 rifle barrel on the top and in between the SG barrels. In addition he said there was an insert for one SG barrel to convert it to a .22.





He said the design was due to the way hunting was done there. As I understand it the Forest Meister would take out a group. When game was spotted he would allow someone to shoot it. You never would know what game you would get to take a shot at so this one weapon had all you might need.





I once saw a group like this from the air. There were 3 of us in an OH-58. The pilot pissed them off and we got a round thru the VHF shark fin on the bottom of the bird.


A2's double ICT or economics?

Hi ya





In year 13 now and I am stuck as to what subject to drop. I could drop double ICT to single in which i gained a C or economics in which i got a D.





I think that economics would look better on a CV but I will enjoy ICT more.





I also want to go to uni to do mathmatics with computing.





Which should I do?





Thanks





Matt

A2's double ICT or economics?
Do ICT, more jobs aavailable at the end...Do ECO as a single subject but at advanced level as you only got a D...
Reply:Economics only gets harder at A2 (I know) so I implore you to carry on with ICT, because if you want to get into Uni you're going to have to get the UCAS points/grades to get onto the course, so getting the highest possible grades is the most important thing.
Reply:Drop Economics.


Currently have the following for my code, but im not sure how to sort. (4) please help write in C language?

write the following in C language:





1. dynamically create an array of 1000 doubles


2. read unspecified number of doubles from a binary file


3. reallocate the array to amount of items actually read


4. sort all values in descending order (high to low)





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





int main(int argc, char** argv)


{


FILE *fp;


double *ptr, *reptr;


int length;


ptr = (double *) malloc(1000* sizeof(double));


fp =fopen("yourfilepathandname","rb");





length = fread(ptrr, sizeof(double), 1000, fp);


close(fp);


(double *) realloc(ptr, length * sizeof(double);











sort(ptr);


return 0;


}

Currently have the following for my code, but im not sure how to sort. (4) please help write in C language?
So you want to sort an array. There are lots of algorithms to do that. They are different in speed, memory usage and ... . Some famous ones are: Bubble sort, QuickSort, ...


The most simple one is bubble sort. You get an array and start with the first number. You compare it with the next one and if it is smaller, you change their places and so on. Then the second item and so on to the last item in array.


The pseudo-code will be like this:





procedure bubbleSort( A : list of sortable items ) defined as:


do


swapped := false


for each i in 0 to length( A ) - 1 do:


if A[ i ] %26gt; A[ i + 1 ] then


swap( A[ i ], A[ i + 1 ] )


swapped := true


end if


end for


while swapped


end procedure





You can find the other algorithms with a little search!





good luck.
Reply:hey geekguy, bad news dude you have a corrupt system pal because everything in your system is on C:\ driver so if you know how to debug and format your hard drive it will fix these problems. you might try hitting start,programs,accessaries and system tools and restore to before it became corrupted but chances are it won't help pc repair can help just tell him that your C:\ driver is become corrupt and you want him to do a debug and format your hard drive and he will think that you know a lot about pc repair lol sorry man. But what your files is doing is repeating themselves or buy a new hard drive but they are expensive so do as the geeks all do is give good advice tell him what your pc is doing and it need a debug and format good luck and keep computing.

sound cards

Sin 2B using given information and double angle formula?

GIVEN:


tan A= -3/5, 3rd quad. (π%26lt;x%26lt;3π/2)





3π/2sin B= -1/4, 2nd quad.(π/2%26lt;x%26lt;π)





cot C= 1/2, 2nd quad.(π/2%26lt;x%26lt;π)








Double-angle formula for sine:





sin2x = 2sinxcosx











THANK YOU!!!!!

Sin 2B using given information and double angle formula?
The only info you need to worry about is the part pertaining to angle B





I'm not sure what 3π/2 is doing in front of sin B. I'll assume that is a typo.


So sin B = -1/4





You are given the double angle formula: sin (2B) = 2sinBcosB


You already know sinB = -1/4, so you need to find cosB





cosB = adjacent / hypotenuse


sinB = opposite / hypotenuse = -1 / 4


You can use the pythagorean theorem to find the adjacent side.


1^2 + (adjacent side)^2 = 4^2


1 + (adjacent side)^2 = 16


(adjacent side)^2 = 15


adjacent side = sqrt(15) or -sqrt(15)


You are given that the angle is in the second quadrant (because π/2 %26lt; B %26lt; π), and since cosine is negative there, then the adjacent will be negative.





So sin(2B)


= 2sinBcosB


= 2(-1/4)(-sqrt(15))


= sqrt(15) / 2





Looking back on the problem, I'm going to assume there is another typo. It says second quadrant for x. Is that x supposed to be B? If it is B, then something is wrong because sine is positive in the second quadrant. So if sinB is -1/4, then B has to be in the third or fourth quadrant.


You'll just have to figure out the signs.


C++ programming question?

I was doing this program on Visual Studio 2005 where the program converts C to F and vise versa but after debugging it, it doesnt give the expected result. Could someone tell me what is wrong with my code???








#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;





using namespace::std;


using std::fixed;





int main()


{


int conversionType = 0;


double temp = 0.0;


double result = 0.0;





cout %26lt;%26lt; "Enter -1 (F to C) or 2 (C to F): ";


cin %26gt;%26gt; conversionType;


cout %26lt;%26lt; "Enter temperature: ";


cin %26gt;%26gt; temp;





if (conversionType == '-1')


{


result = (temp - 32) * 5 / 9 ;


}


else if (conversionType == '2')


{


result = temp * 9/5 + 32;





} //end if





cout %26lt;%26lt; "Result: " %26lt;%26lt; result %26lt;%26lt; endl;





return 0;


} //end of main function





--------------------------------------...

C++ programming question?
I'm not a c++ programmer but if your converstionType is an integer, why are you comparing it to a string? (conversionType == '2').
Reply:what the hell? ? Report It

Reply:what the hell? ? Report It

Reply:You're comparing the integer "conversionType" to a character in each of your if statements. Remove the quotes.
Reply:You are not pausing the prompt so that it can show the output. Add one of these


system ("PAUSE");


cin.ignore();


cin.get();


above return 0.





I use Dev C++, so I use system ("PAUSE"). You use something else, so these commands may not work. If they don't, then this definitely will.


It will hold the session until the user presses a key and since there is no more code after it, it will close the window.


Also, remove the quote or else it will return 0 regardless of what you put in.


#include %26lt;iostream%26gt;


#include %26lt;iomanip%26gt;





using namespace::std;


using std::fixed;





int main()


{


int conversionType = 0;


double temp = 0.0;


double result = 0.0;





cout %26lt;%26lt; "Enter -1 (F to C) or 2 (C to F): ";


cin %26gt;%26gt; conversionType;


cout %26lt;%26lt; "Enter temperature: ";


cin %26gt;%26gt; temp;





if (conversionType == -1)


{


result = (temp - 32) * 5 / 9 ;


}


else if (conversionType == 2)


{


result = temp * 9/5 + 32;





} //end if





cout %26lt;%26lt; "Result: " %26lt;%26lt; result %26lt;%26lt; endl;


char t;


cout%26lt;%26lt;"Press a key to end the session";


cin %26gt;%26gt; t;


return 0;


} //end of main function


Straight-line method & double declining balance method?

On January 1, 2003 Daugherty Company purchased a truck that cost $20,000. The truck had an expected useful life of 4 years and a $2,000 salvage value. Based on this information alone:











a. The amount of depreciation expense recognized in 2006 would be greater if Daugherty depreciates the asset under the straight-line method than if the double declining balance method is used.





b. The total amount of depreciation expense recognized over the four year useful life will be greater under the double declining balance method than the straight-line method.





c. At the end of 2004, the amount in accumulated depreciation account will be less if the double declining balance method is used than it would be if the straight-line method is used.





d. None of the above statements is true.

Straight-line method %26amp; double declining balance method?
d. none is true
Reply:If using a truck or other vehicle which is expected to accumulate high miles and high maintenance costs. It is far better to lease the vehicle as one cannot anticipate salvage value further down the road.


As the Co has already bought the truck. I would suggest sinking funds in to the truck to last longer than 4 years.


This means that all costs are deductable 100% , with depreciation (Straight Line) and not having to purchase a new truck after 4 years (Save 30K)


A fatty acid containing at least two double bonds is called _____.?

A fatty acid containing at least two double bonds is called _____.


A) unsaturated


B) cholesterol


C) hydrophilic


D) dehydrogenase


E) saturated

A fatty acid containing at least two double bonds is called _____.?
It's A) unsaturated because an unsaturated hydrocarbon is a hydrocarbon that contains at least one double or triple carbon to carbon bond. However, I'm not sure if fatty acid is a hydrocarbon but I'll go with A.
Reply:Unsaturated.





Just learned that last week. ;D
Reply:It is definitely unsaturated. I enjoyed biology in high school.
Reply:a
Reply:A) Unsaturated
Reply:a
Reply:A) Unsaturated

liama-song

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


C++ Errors. Please help?

I got these errors while compiling one of my c++ programs. Can someone explain what it means or how to fix it?








array.cpp: In member function `double Array::GetData(int)':


array.cpp:33: error: ISO C++ forbids comparison between pointer and integer


array.cpp:34: error: invalid types `double*[int*]' for array subscript


array.cpp: In member function `void Array::Resize(int)':


array.cpp:47: error: `sizePtr' was not declared in this scope


array.cpp:49: error: invalid type argument of `unary *'


array.cpp:53: error: ISO C++ forbids comparison between pointer and integer


array.cpp:54: error: invalid type argument of `unary *'


array.cpp:57: error: invalid conversion from `int' to `int*'


array.cpp: In member function `void Array::Output()':


array.cpp:65: error: ISO C++ forbids comparison between pointer and integer


array.cpp: In member function `void Array::Input()':


array.cpp:72: error: ISO C++ forbids comparison between pointer and integer

C++ Errors. Please help?
Not unless you post the source code.


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


Should I double-up on my multivitamin when I'm sick?

I have had a cold for three days now. I've been taking the same multivitamin I always take plus a little extra vitamin C. Would it be beneficial for me to just double-up on my multivitamin intake? Why or why not?





If so, should I take both at the same time or at different times during the day?

Should I double-up on my multivitamin when I'm sick?
You need to be careful not to get too much of some vitamins which are toxic in high doses, so be sure to read the label on your multivitamin to determine whether you can safely increase the daily dosage or not. Getting extra vitamin C and a lot of liquids is good too.





You might want to try an immune supplement like Immune Alert which is designed to help improve your body's ability to fight off germs. I know Immune Alert (the active ingredient is an extract from baker's yeast) can be taken in higher doses when you are symptomatic and then taken in the regular dose daily to maintain a healthy immune system.





And don't forget chicken soup -- the old-fashioned tried and true cold remedy.
Reply:Definately not, some vitimins will harm you if you get too much into your system.





Eat more fruits with vitimin C and drink juices with it vitimin C in it like orange juice.





To get rid of a cold you need vitimin C and B12 but a multi vitimin has many more and you could make yourself very ill if you get too much of it.





For example vitimin D if you have too much will do more harm then good, that the vitimin that keeps calcium in your bones and you can also get it from sunlight but too much is not good for you.





Too much iron can cause serious problems too. Just supliment your multi vitimin with C %26amp; B12





Feel better soon!
Reply:Yes, take one in the morn and one in the eve
Reply:no, not necessary. do take more C, though--a lot more, and drink purifying teas like nettle, parsley and dandelion--these will flush all the crud out of your systemn and allow your body to heal itself. lots of water, too--at least 2-3 liters a day.
Reply:Once your sick, your sick. Nothing is going to provide a "cure". Don't bother doubling up on multi vitamins. Vitamin C 4000 to 10,000 mg a day while sick may help speed recovery. You can't overdose vitamin c. Lots of water, chicken soup and keep your body temperature elevated as this is the way your body naturally fights off infection. Unless you have an abnormally high temperature, don't take anything to lower it. Get plenty of rest.
Reply:Don't take more of all vitamins. Take more Vitamin C. It is recommended you take 2000 mg per day of Vit C while you are symptomatic. If you cant get that from your food, then a pill will suffice. Even better you can take Emergen-C two to three times a day.

garden state

If I want to invest a certain amount of money at 8% simple interest,how long will it take for the money double

If I want to invest a certain amount of money at 8% simple interest, how long will it take for the money to double?





a. 10 years


b. 9 years


c. 11 years


d. 12.5 years

If I want to invest a certain amount of money at 8% simple interest,how long will it take for the money double
12.5 years
Reply:b. 9 years





The magic number for doubling your money is 72. The interest rate times the doubling time is 72.
Reply:use the rule of 72 which gives will give the interest or time needed for money to double. divide 72 by the interest rate and you will get the time to double divide 72 by the time and you will get the interest rate.





in your case.


72/8 = 9 years to double.
Reply:use the rule of 72 which gives will give the interest or time needed for money to double.








72/8 = 9 years to double your money


Having a problem with drives C: and D: ?

When I try to open drive C: or D: , it won't open by double click or by rigth click , and every time when pressing rigth click both "open" and "explore" I find it in strange words


as ه?(o) . Is it a virus? and how can I fix it ? I'm using AVG anti and Kaspersky , and both didn't help me.

Having a problem with drives C: and D: ?
Not sure what the cause is, but you dont want to run more than 1 antivirus and 1 firewall program at one time....these programs can cause some serious conflicts.....uninstall one of the antivirus programs....."preferably AVG"





What you can have more than one of, is antispyware programs....


Try downloading these two and run a scan and see if you get any hits....





http://www.download.com/Spybot-Search-De...





http://www.download.com/Ad-Aware-SE-Pers...


Need help with a c++ Code?

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 with a c++ Code?
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) :)


Double Stage Model Rocket??

How do I make a double stage model rocket? I plan on using "C" engines.

Double Stage Model Rocket??
http://www.apogeerockets.com/Education/h...





http://en.allexperts.com/q/Model-Rocketr...





http://www.hobbylinc.com/prods/tcf.htm





Good Luck!

funeral flowers

What is the measure of an angle if it is nine degrees more than double its complement?

What is the measure of an angle if it is nine degrees more than double its complement?


A. 27°


B. 57°


C. 63°


D. 123°

What is the measure of an angle if it is nine degrees more than double its complement?
Let the angle be x.





The complement of an angle x is 90°- x.


Thus According to the gives question the equation will be as follows :





(90°- x)*2+9°= x





Gives, 189° - 2x = x





implies,189° = 3x





x = 63°





Therefore the required angle is 63°.





Hope you can understand this explaination.
Reply:ans. C. 63 degrees





solution:





let x be the measure of the angle


90-x its complement


x = 2(90 -x) +9


x = 180 -2x +9


x +2x = 189


3x = 189


x = 189/3


x = 63 degrees
Reply:A. 135 degrees


B. 75 degrees


C. 63 degrrees


D. well it over ninety all ready but I'll try


i guessed 303 but trully there is no answer
Reply:The angle is 63"





Let A be the angle and B be its complement





Given A + B = 90"


and 2B + 9 = A


By solving the above equations we get A = 63" amd B = 27"
Reply:I'd rather not do your homework for you, but I'll give you a hint. Try expressing this as a mathematical equation.





Call x your mystery angle. Since x's complementary angle should be equal to (90 - x), then we can write:





x = 9 + 2 * (90 - x)





Then you should be able to solve this for x. Happy mathing.
Reply:Answer: C





Let x° be the angle, so double its complement is 2(90-x)





x = 2(90-x)+9


x = 180 - 2x +9


3x = 189


x= 63
Reply:complementary angles total 90 degrees





x = unknown angle


2x + 9 = other unknown angle





x + (2x + 9) = 90


3x + 9 = 90


3x = 81


x = 27





angles are 27 and 63





The angle in question is the larger one (since it is more than double its complement), so the correct answer is 63 degrees
Reply:A. complentary angles combine to equal 90 degrees.





2x+9 is one angle


x is the other





2x+9+x=90


3x+9=90


3x=81


x=27





Edit ***





It seems like everyone else is confusing complentary angle (sum of 90) with supplementary angles (sum of 180).
Reply:The complement of an angle θ is 90°-θ. Thus:


(90°-θ)*2+9°=θ


189°-2θ=θ


189°=3θ


θ=63°
Reply:What are complementary angles?





Can you write two equations relating the two angles?
Reply:The complementary angle of x degrees is (90-x) degrees.





Therefore, the given condition yields,


x = 9 + 2(90-x)


or x = 9 + 180 -2x


or 3x= 189


or x= 189/3


or x = 63


The complementary angle is 90 - 63 = 27





But 9 + 2( 90-27) = 9+2(63) != 27. Therefore x=27 do not satisfy the given condition but x=63 degree do.


Thus the required answer is x=63 degrees.





Ans.) C. 63 degrees.
Reply:Ans:-C





let the angle be x


its complement is 90-x


x = 9+2*(90-x)


3x=189


x=63
Reply:x - 9 = 2(90 - x)


x = 63 degrees
Reply:C.


Why could not I access my hard disk drives by double clicking?

When double click on my hard disk drives (C,D,E) I’ve unable to go directly into that drive but it’s show the Open With window instead, when right click on my drive the first line show on the board is “Auto”, not the “Open”. This problem happens after I reinstall Window XP SP2. Please help me to fix this so that I can access into my hard disk drives by double clicking on my drives. Many thanks to all

Why could not I access my hard disk drives by double clicking?
Instead of double clicking, just right click the drive and use EXPLORE. It works alot better.
Reply:( Old %26amp; Cudley) please when i right click i still don't get access rather i get open with a program. WHY , the two above options don't work for me Report It

Reply:your drives might not be installed correctly, or the files that control them might be corrupt





you should take it to a shop to be repaired -or- do a system restore and dont install sp2; if you have a good antivirus and firewall you should be ok w/o this update


Have you ever wondered why bra sizes are labelled A,B,C....?

Have you ever wondered why A, B, C, D, DD, E, F, G, and H are the letters used to define bra sizes?


If you have wondered why, but couldn't figure out what the letters stood for, it is about time you became informed!





(A} Almost Boobs...


{B} Barely there.


{C} Can't Complain!


{D} Dang!


{DD} Double dang!


{E} Enormous!


{F} Fake.


{G} Get a Reduction.


{H} Help me, I've fallen and I can't get up !





They forgot the German bra.


Holtzemfromfloppen

Have you ever wondered why bra sizes are labelled A,B,C....?
Good one!


you cant beat a good funbags gag!!! lol
Reply:haha my friend made up one like this except it was for the grading scale:





(A) average


(B) barely


(C) see i got it right!


(D) da best


(F) f*** you teacher
Reply:When my son was younger he picked up one of mine and called it my over shoulder boulder holder!!! They've been called that by the family ever since.
Reply:I believe the enormous is also known as the 'over the shoulder boulder holder'.
Reply:I'm "Barely there".


Hahaha.
Reply:cant say i have,,,,but i have often wondered why womens panties are labelled C%26amp;A does it mean Front and Back????????????
Reply:The british bra is known as "The upper decker flopper stopper".
Reply:haha (:
Reply:lol well you cant complain about me haha
Reply:lol bra shopping will nvr be the sme again
Reply:classic well done
Reply:omg, clever...lol!
Reply:LOL!!!





I saw a cartoon version of that- the "H" one had her bowled over.
Reply:Ha ha ha.!!!


Brilliant one mate.!!!


10/10.!!!


The German bra was the best, lol.!!!


Cheers.!!


Help with this c++ error?

When I run my program, I get these errors, even though I have I have added "#include %26lt;cmath%26gt;"!


Will anyone help me how to fix them, please!





thank you!





/usr/lib/gcc/i386-redhat-linux/4.1.1/.... no te: long double std::pow(long double, int)


/usr/lib/gcc/i386-redhat-linux/4.1.1/.... no te: float std::pow(float, int)


/usr/lib/gcc/i386-redhat-linux/4.1.1/.... no te: double std::pow(double, int)

Help with this c++ error?
The signature for pow() is:





double pow(double x, double y);





Change your second parameter from int to double. Changing your return variable to a double is also advisable.


.
Reply:Converting from float, double or long double to int sometimes causes problems. First I would suggest running the compiled program and see if it runs properly (in my experience, often the program will run just fine despite the compiler giving you a warning). If you're sure the program's behavior is actually bugged, then you'll have to find some way to convert between different variable types. Unfortunately I don't know exactly how this is done, I'm still a noob at C++.
Reply:#include%26lt;cmath%26gt;





//your function should be





{


double pow (double variable1, double variable2);


}





from


keng ping kong from www.iwohoo.com and www.pinkeikong.com

floral design

C++ Programming: Mod operator for floats or doubles?

is there a possible way to use the modulus operatr (%) on a float or a double?

C++ Programming: Mod operator for floats or doubles?
It's probably a poor idea to do so.





What is it that you're trying to do?


Can't double click to open Local Disk?

When I double click to open either Local Disk C or Local Disk D, I'll b prompted a msg box which ask me to Open With...





How can i solve this?

Can't double click to open Local Disk?
Sounds as if you have the TAGA LIPA ARE virus.





My Computer -%26gt; Tools Menu -%26gt; Folder Options -%26gt; View Tab:





Select: Show hidden Files and Folders





Uncheck: Hide Extensions for known file type and Hide Protected operating system





Click Yes Then OK.





You will see an autorun.inf and FS6519.dll.vbs in all your harddrives. Delete ALL of them.





If it says that something is using the program. Press Ctrl+Alt+Del and go to processes, any time you see wscript.exe click end task.





Then go to run type regedit and then press OK, go to Edit -%26gt; Find and type FS6519.dll.vbs.





Edit the found registry by selecting the name, right click and modify, remove the last two strings which is wscript.exe and FS6519.dll.vbs and click OK.





If finished, press F3 and it will search again for another, just do the same thing until nothing is found in your registry.





If you are done with the FS6519.dll.vbs, its time for the TAGA LIPA ARE! be edited in your IE, type the string on the search again then it will show up the IE title ... modify then type anything you like or better delete it.





You can also try this program to automatically scan and remove this problem:





http://www.rosemaleen.com/computer_secur...


Which of the following pairs of base sequences could form a short stretch of a normal double helix of DNA?

Which of the following pairs of base sequences could form a short stretch of a normal double helix of DNA?


a.5'-A-C-T-G-C-3' with 3'-T-C-A-C-C-5'


b.5'-purine-pyrimidine-purine-pyrimidi... with 3'-purine-pyrimidine-purine-pyrimidine-5...


c.5'-A-C-T-T-G-3' with 5'-C-A-A-G-T-3'


d.5'-A-G-C-C-T-3' with 5'-T-C-G-G-A-3'

Which of the following pairs of base sequences could form a short stretch of a normal double helix of DNA?
A is incorrect because the last c does not bond with the c in the second sequence.





B is incorrect because purines do not bind with other purines, nor does pyrimidines bind with pyrimidines.





D is incorrect because in a double helix, one strand will be 5' - 3', and the other strand will be 3' - 5' in the same direction.





The answer, therefore, is C. if you flip the second sequence so the 5' end of one sequence compliments the 3' end of the other sequence, you will see that the base pairs also compliment.
Reply:D


Do you want to know why A, B, C, D, DD, E, F, G, and H are the letters used to define BRA sizes?

If you have wondered why, but couldn't figure out what the letters stood for, well here it is...





(A} Almost Boobs...


{B} Barely there.


{C} Can't Complain!


{D} Dang!


{DD} Double dang!


{E} Enormous!


{F} Fake.


{G} Get a Reduction.


{H} Help me, I've fallen and I can't get up!

Do you want to know why A, B, C, D, DD, E, F, G, and H are the letters used to define BRA sizes?
ok
Reply:ha ha!! nice.
Reply:lol. Yeah, I've always wondered about that.
Reply:thats funny. i cant complain
Reply:Ummmm......ok.
Reply:haha wow lol





good to know what i am hehe
Reply:wow thats great! lmao!
Reply:That's Very Good...!!
Reply:That's funny
Reply:haha thats hilarious!
Reply:Interesting.... :)
Reply:HAHA! that was hilarious! especially f,g,and h.
Reply:Right...is this some sort of joke?
Reply:nice .. i'm going to use this
Reply:I heard this in middle school, still funny though.
Reply:Hahahahahahahahaha...love it! I gotta tell this one to my friends. Too funny!
Reply:IMAO!





i was kindda scared to answer this question...but dang!! that's halirous! i'm giving u a star! :]
Reply:ha ha halarious!


is that real!!!!!


oh so cool!
Reply:hahahhahaha





nice to know.
Reply::]
Reply:LMAO....that is so good. Wish I was an F instead of a B. This is one time an F would be good.
Reply:LOL that pretty good but so true
Reply:Haha, H made me lol!
Reply:Brilliant, Absolutely Hilarious!





If I was drinking, I would have drowned!
Reply:lol thats hilarious
Reply:nice lol
Reply:haha
Reply:haha so effing hilarious
Reply:i gotta say this was a surprise coming from a girl and the other girls reaction where also a surprise wow ,btw i'm guy
Reply:OMG! I guess I've always been stuck at "Almost Boobs," I NEVER knew there was an H!! Are you for real, as in the letters? Lol Wow, I am missing out... *looks at chest and sighs*





Edit: Although I am SMALL, I won't complain, for when I grow old, that's LESS to go DOWNHILL... Hehehe... XD

chelsea flower show

C++ calculator program?

I made this c++ calculator program, but for some reason it only multiplies. How can this be fixed? Here's the Program:


#include %26lt;iostream%26gt;


using namespace std;





double operate (double x, double y)


{


return (x*y);


}





float operate (float m, float n)


{


return (m/n);


}





int operate (int a, int b)


{


return (a+b);


}





long operate (long c, long d)


{


return (c-d);


}


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


{


double x, y;


float m, n;


int a, b;


long c, d;


char operation;


cout %26lt;%26lt; "Choose operation" %26lt;%26lt;endl;


cout %26lt;%26lt; "1: *, 2:/, 3:+, 4: - "%26lt;%26lt;endl;


cin %26gt;%26gt; operation;





while (operation = 1)


{


cout %26lt;%26lt; "enter x:" %26lt;%26lt;endl;


cin %26gt;%26gt; x;


cout %26lt;%26lt; "enter y:" %26lt;%26lt;endl;


cin %26gt;%26gt; y;


cout %26lt;%26lt; operate (x,y) %26lt;%26lt; endl;


cout %26lt;%26lt; "Choose operation" %26lt;%26lt;endl;


cout %26lt;%26lt; "1: *, 2:/, 3:+, 4: - "%26lt;%26lt;endl;


cin %26gt;%26gt; operation;


}





while (operation = 2)

C++ calculator program?
This is the easiest mistake to make. while (operation = 1) is actually RESETTING operation to 1. You need to do (operation == 1) instead.





Even experienced developers make this typo. To prevent it, get in the habit of putting the const first. While (1 == operation). The compiler will prevent you from ever messing up again.





The second problem is that operation is a char, but you are comparing it to an int. The compiler doesn't complain, because under the covers a char is really an int of the ASCII value of the char. If you fix the = to ==, you will fall through. You need to write while ('1' == operation) or define operation as an int instead of a char.





Once you fix that, you should be good to go. There is no problem with ambiguity with the operate functions. Your overloads are fine.
Reply:try operator overloading. . .it might make the program a bit shorter. . .
Reply:All your functions are called "operate", which is confusing, rename them to something more meaningful "MyMultiply", "MyDivide" etc.





Also, your while loop is only spinning if "operation" is "1". So it needs to loop if "operation" is less than four.





You'll will also need some extra logic inside the loop to determine the correct function to call.
Reply:Okay, going to try and tackle a couple of your issues, some which have already been mentioned:





1. Your while loops are using assignment "=" instead of comparison.





2. It seems that you are attempting to do operator overloading. You will call the different "operate" functions based on what types you feed in. Since you are stuck in your first while loop, you are always feeding in doubles 'x' and 'y' and therefore will always call your operator that deals with doubles.





3. The general structure of your program is a bit odd. It seems that what you generally want to do is loop infinitely(hopefully this is what you meant to do). If that is the case, you need a single while loop. Your current setup would make it so that you could at best, do some number of multiplies, then some number of divisions, then some addition, and then some subtraction, but you could never do addition, then multiplication, etc. Use a case/switch statement if you are familiar with it. If you aren't, you can use if statements. Then main thing is just to have one overall loop.
Reply:Why are you using While? While is a loop.





Change the while to a an If statement. Or better yet change to a switch statement (If you covered switch statements in your class).





switch (operations)





case '1'


{


cout %26lt;%26lt; "enter x:" %26lt;%26lt;endl;


cin %26gt;%26gt; x;


cout %26lt;%26lt; "enter y:" %26lt;%26lt;endl;


cin %26gt;%26gt; y;


cout %26lt;%26lt; operate (x,y) %26lt;%26lt; endl;


cout %26lt;%26lt; "Choose operation" %26lt;%26lt;endl;


cout %26lt;%26lt; "1: *, 2:/, 3:+, 4: - "%26lt;%26lt;endl;


cin %26gt;%26gt; operation;


break;


}


case '2'


...
Reply:I think there are a couple of reasons that the program will only mutiply, first being that all of the methods are named "operate", so when the program calls "operate", it is always going to use the first one encountered, which happens to be the one that multiplies. I would stongly suggest changing to each method name to a unique name.


Now, about the logic.. this program could be greatly simplified by creating methods for the inputting and outputting of the numbers, as well as an "operation" method that could perform any one of the four operations, depending on what the user chooses. You could include the operations in a swtich statement, like so :





switch (operation)


1


multiply the nums


break


2


divide the nums


break


...





Code may be a little of (I'm not a C++ developer) but the concept is good. Try that out. Good luck :)
Reply:include the int main() function, write your user define functions after the int main, and give them defferent names. your program shall work if you like i could give you a full code.


In "My Computer" my local disk dosnt open in double clicks, instead it ask me to "open with" the list of files

Local Disk Drive C and D should open when i double click on the drive, but recently i have notice, when i click those drives, it ask me to "open with" the selected programs i want to use to open the file.





This is not normal. Thus, it should open like any other folder do.





Can someone help me resolve this case...





Thank you in advance!

In "My Computer" my local disk dosnt open in double clicks, instead it ask me to "open with" the list of files
Select the Windows explorer program for this, usually located:


C:\WINDOWS\explorer.exe


Then check the option "Always use this..."


Close the folder view, then double click on the drive, it should open up otherwise you need to update file association for folders/drives to allow explorer.exe to open them.


I think this forum post should answer your question perfectly:


http://forum.soft32.com/windows/open-dri...


Good luck.
Reply:Click START, then RUN and type in CMD, and click on OK.


When the Command Prompt appears, type "C:" and hit ENTER.


Type "CD\" and hit ENTER.


Type "ATTRIB -S -R -H -A AUTORUN.INF", and hit ENTER.


Type in "DEL /F /Q AUTORUN.INF".


Reboot your pc.


Try to double click your drive now.





(All the typing is done WITHOUT " ")





OR





Try one of these:





01.) run this in your run box or command prompt:


regsvr32 /i shell32.dll





02.) http://wiki.answers.com/Q/When_you_doubl...





03.) http://www.daniweb.com/forums/thread6873...





04.) http://forum.soft32.com/windows/drive-op...





05.) http://www.softwaretipsandtricks.com/for...





06.) http://forum.notebookreview.com/showthre...
Reply:please give more information. What is your OS, check the amount of free space on your hard drive. Did you check the settings in the control panel called "file options"?


About c++ plzzzz helppppppp.?

how do you write 3.00 * 10 to the power of 8 in c++? i think it is 3.00* double pow10(int x) and x = 8.but its not working. plzz help thx.

About c++ plzzzz helppppppp.?
double temp = 3.0e8;
Reply:#include %26lt;iostream%26gt;


#include %26lt;cmath%26gt;





using namespace std;





int


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


// If you do not want output in exponential form


// double double res=0;


long double res=0.0;


long double val=30.0;


res = pow(val,8);


cout %26lt;%26lt; res %26lt;%26lt; endl;


return(0);


}


How can i fix the c+++run time error?

when i double click on internet explorer the c+++run time error apears and i press ok then i do not know what to do plzzz if you know how you can help me plzz say to me how i fix it

How can i fix the c+++run time error?
install firefox, thats what you do.
Reply:Hard to say for sure but it looks like you've got some nasty spyware on your machine. Run spybot or something like that to clean it. I had a similiar problem and a spyware scanner cleaned it up.

apple

I have some EXCEL sheets with the "C" column filled with some numbers.?

How can I double those values with a sigle clik. I don;t want to do it manually because I'll spend a lot of time ! PLease help me.


I need a formula who can double all my values form my C column !

I have some EXCEL sheets with the "C" column filled with some numbers.?
Here is a solution - not one click, but not manual, either:





Go to the top row in a nearby empty column. Type in the formula =C1*2 and press enter. This will give you the double of the value in cell C1. Now, to replicate this formula down the entire spreadsheet ...





1) Click on the cell with the formula you just typed.


2) You should see a box around the cell with a little square in the lower right-hand corner.


3) Click and hold this little square, and "drag" it down your entire spreadsheet in that column. This will bring this formula to each other row, giving you the double of each number in column C.
Reply:Another way to do this without adding a column and using a formula per se. Go to an empty cell and enter in 2. Copy. Then select column C, select Paste Special - then under Operation press Multiply. That will multiply everything by 2. You can go back and delete that cell with the 2 in it now.


Do you think enid blyton writes her stories with double meaning in between d lines?if can,give e.g of it.?

enid blyton is x-tremely famous for her stories..then n now.is her stories really written for kids or is it laden w. double meaning too?only adults can c it?or kids nowadays can too?e.g. of some fave enid blyton novels..n why?should it be made into movies?

Do you think enid blyton writes her stories with double meaning in between d lines?if can,give e.g of it.?
her stories are very beautiful - i grew up reading them - inever thought they had double meaning


What do you think about double middle names???

I have one daughter that has a double middle name %26amp; the reason behind it is that it sounded silly with one without the other. Her name is Chloe Olivia-Belle. It sounds silly if it's just Chloe Olivia, like it's not finished, and Chloe Belle sounds like a cow. But Chloe Olivia-Belle sounds more like a child %26amp; it sounds finished. Now I've fallen for the name Aubrey. Isn't it lovely?? %26amp; I really like the name Aubrey Catherine Alyce. (a-lyc-c) . I don't like Aubrey Catherine b/c it sounds unfished %26amp; Aubrey Alyce is double A's %26amp; I don't particulary love that either. Do you think it would matter if I named my daughter Aubrey Catherine Alyce? Do you like it?





or do you like Savannah Alyce or Serena Noelle?





Thank you. ~Ella~

What do you think about double middle names???
Well considering that I have 2 middle names I think they're fantastic :-) My daughters name is Genevieve Noelle so I like Noelle as a middle name so I'd say go with Serena Noelle.
Reply:double names are fine


its your decision


they are all cute





god bless u


u r n my prayers


congrats!!!!!!!
Reply:Honestly, last names are meant to make the name sound finished. Nobodys name really sounds finished without the last name. Just like Barbara Diane doesn't sound finished, but Barbara Diane Griffon (actual name) does.
Reply:okay i think that maybe u should name ur kids with a double 1st name bause double middle name sonds weird.





cute names though:)))
Reply:I'm personally not a fan of double middle names, but if you have one daughter with a double middle name, might as well keep the trend going, right?? :)
Reply:Double middle names make standard forms difficult to fill out....There is only one space for your middle initial.





My ex-husband has no middle name and some papers require a middle initial (he would just put an "x")....
Reply:I think your double middles are lovely, but Serena Noelle is beautiful!!
Reply:I'm not one for the double middle name. Sorry. What's the point? If you choose a middle name and it sounds unfinished once paired with the first name then why not just look for a new middle name? Pick something that will finish the name. Why do that do your child? It's a mouthful and it takes longer to write it when they will need to.
Reply:I have two middle names and i love it. My mum did it so if i did not like my first name i could chose to use one of my middle names. I am a Kathryn Jayne Elizabeth and yes my mum does like english history. I like the name Aubrey Catherine(sorry i hate this spelling) Alyce but how about Aubrey Cathryn Alyce. or Aubrey Kateleen Alyce. Tell me what you think
Reply:Aubrey Catherine Alyce is great, and the one I like best. Serena Noelle is pretty, especially for a winter baby and Savannah Alyce is my least favorite.
Reply:I have a double middle name...





Marie-Elizabeth





I think they sound nice...
Reply:I think double middle names are just fine. :)
Reply:I like Savannah- thats my sister Savannah Gabrielle


I like double middle names too. My sister named her daughter Aubrianna Kiara so she put the 2 together. My mom has 3 middle names. Dovie Lee Pearl Allison
Reply:i love it. it sounds really cute together. i love your other daughters name too. very cute
Reply:Aubrey Catherine Alyce is nice; Catherine is my daughter's middle name and my Grandmother's first name.





I prefer Savannah Alyce over Serena Noelle.





And may I just say, how amazing. Fourteen children. No miscarriages at all? Two sets of twins and some quads? All in perfect health? You must be WonderWoman.
Reply:How about Savannah Noelle or Serena Alyce they both sound finished and flow well too.
Reply:i think a double middle name makes it more interesting and unique, moe unique than Obree Kcaethoryinne (Aubrey Catherine). I think Chloe Olivia Belle and Aubrey Catherine Alyce sound good. I don't like the hyphen in Olivia-Belle, so i wouldn't recomend doing it in Aubrey Catherine-Alyce. I think people will pronounce Alyce like Alice, if that isn't how it's pronounced, because Alyce is another common spelling of Alice.( I have an Aunt Alyce, pronounced Aunt Alice)
Reply:i like the idea and agree. i like aubrey alyce personally depending on the last name. so yes, go on double naming them
Reply:Aubrey Catherine Alyce sounds great. I agree with you that the two middle names work better than just one in this case.





Personally I don't see anything wrong with two middle names - if someone had two first names (eg Sarah Jane) and a middle name as well, then no one would question it, but it's still three names!
Reply:i like the name but i like Serena Noelle better (if ur kid was born on christmas)
Reply:I think that you have some very nice names picked out :) I love Aubrey. Aubrey Kathryn Elise would be great. Good Luck :)
Reply:Im not against middle names or anything, I like your savannah alyce.


just remember they have to learn to spell their whole name in kindergarten!
Reply:I LOVE abrey Cathrine Alcye it is SOOOOOOO P-E-R-F-E-C-T!!!!!!!!
Reply:My Brother is going to name his son Chester Bryan Kieth


It sounds better than Chester Bryan or Chester Kieth
Reply:Double middle-names are fine, but avoid the hyphen. That seems pretentious and superfluous.
Reply:i like Aubrey Catherine Noelle.
Reply:i think it does not sound unfinished if u go with aubrey catherine. they sound really good together. best of luck to you


A + 2B ----> C, and the rate = K[B]^2?

What will happen to the rate of the reaction if the amount of A in the solution is doubled?





(A) The rate will double


(B) The rate will halve


(C) The rate will be four times bigger


(D) The rate will be four times smaller


(E) No effect

A + 2B ----%26gt; C, and the rate = K[B]^2?
E) no effect... b/c the rate depends on some constant times B squared..., does not mention anything about "A"...





iono, seems too easy.

augustifolia

C & d drive is not opening in windows xp.its giving openwith window?

When I double click on my windows xp C or D drive it gives me an option to choose a programme to open with.What can I do to open it by double click?





is this virus . i checked with avg and avast sematics antivirus


it does not showing any virus





Please help me on this issue.....thanks in advance.

C %26amp; d drive is not opening in windows xp.its giving openwith window?
your PC has been infected by a script


dont worry


right click on the drive and click on open.


if the problem persists, restore ur computer to an earlier date


by clicking start menu/programs/accessories/system tools system restore. That should sole ur problem.


C & d drive is not opening in windows xp.its giving openwith window?

When I double click on my windows xp C or D drive it gives me an option to choose a programme to open with in this it is opening with internet explorer.What can I do to open it by double click?





is this virus . i checked with avg and avast sematics antivirus


it does not showing any virus.





and my system is working very slowely . if i check with anti virus they are not showing any virus. how do i speed up system .





Please help me on this issue.....thanks in advance.

C %26amp; d drive is not opening in windows xp.its giving openwith window?
just scan your system with window live one care...








http://a1gp9.phpnet.us


I have a double strand richelieu pearl necklace?

I have a double strand richelieu pearl necklace choker


C-1575 . I was wondering if anybody knew how much it was worth. I got it from my mother in law and she said she wasn't sure what year it was from, but it's at least 50 years old.





If anybody has any information it would be greatly appreciated, every website I've gone on only shows faux pearls. I want to know the real price, not for the faux ones.





thank you

I have a double strand richelieu pearl necklace?
If you can't find it on any website, take it into a jeweller's shop to be appraised.


Need help fixing the errors in this Template C++Program. I'm lost.Seems to be the same error repeatedly.Thanks

#include %26lt;iostream%26gt;


using namespace std;





template %26lt;class T%26gt;


class Complex


{


friend ostream %26amp;operator%26lt;%26lt;( ostream %26amp;, const Complex %26amp; );


friend istream %26amp;operator%26gt;%26gt;( istream %26amp;, Complex %26amp; );


public:


Complex(const T = 0.0, const T = 0.0 ); // constructor


T%26amp; operator+( const Complex%26amp; ) const; // addition


T%26amp; operator-( const Complex%26amp; ) const; // subtraction


T%26amp; operator*( const Complex%26amp; ) const; // multiplication


T%26amp; operator=( const Complex%26amp; ); // assignment


T%26amp; operator==( const Complex%26amp; ) const;


T%26amp; operator!=( const Complex%26amp; ) const;


// T%26amp; operator[](double);





private:


double real; // real part


double imaginary; // imaginary part


};








// Constructor


template %26lt;class T%26gt;


Complex%26lt;T%26gt;::Complex(T r, T i)


{


T real = r;


T imaginary = i;


}





// Overloaded addition operator





template %26lt;class T%26gt;


T %26amp;Complex%26lt;T%26gt;::operator+(const Complex %26amp;operand2) const


{


Complex sum;





sum.real = real + operand2.real;


sum.imaginary = imaginary + operand2.imaginary;





return sum;


}


// Overloaded subtraction operator





template %26lt;class T%26gt;


T %26amp;Complex%26lt;T%26gt;::operator-(const Complex %26amp;operand2) const


{


Complex diff;





diff.real = real - operand2.real;


diff.imaginary = imaginary - operand2.imaginary;


return diff;


}





// Overloaded multiplication operator


template %26lt;class T%26gt;


T %26amp;Complex %26lt;T%26gt;::operator*(const Complex %26amp;operand2 ) const


{


Complex times;





times.real = real * operand2.real + imaginary * operand2.imaginary;


times.imaginary = real * operand2.imaginary + imaginary * operand2.real;


return times;


}





// Overloaded = operator


template %26lt;class T%26gt;


T %26amp;Complex%26lt;T%26gt;::operator=(const Complex %26amp;right )


{


real = right.real;


imaginary = right.imaginary;


return *this; // enables concatenation


}





template %26lt;class T%26gt;


T %26amp;Complex%26lt;T%26gt;::operator==( const Complex %26amp;right ) const


{ return right.real == real %26amp;%26amp; right.imaginary == imaginary ? true : false; }





template %26lt;class T%26gt;


T %26amp;Complex%26lt;T%26gt;::operator!=( const Complex %26amp;right ) const


{ return !( *this == right ); }





template %26lt;class T%26gt;


ostream%26amp; operator%26lt;%26lt;( ostream %26amp;output, const Complex%26lt;T%26gt; %26amp;complex )


{


output %26lt;%26lt; complex.real %26lt;%26lt; " + " %26lt;%26lt; complex.imaginary %26lt;%26lt; 'i';


return output;


}





template %26lt;class T%26gt;


istream%26amp; operator%26gt;%26gt;( istream %26amp;input, Complex%26lt;T%26gt; %26amp;complex )


{


input %26gt;%26gt; complex.real;


input.ignore( 3 ); // skip spaces and +


input %26gt;%26gt; complex.imaginary;


input.ignore( 2 );





return input;


}








//Use the following main function to test your program


int main()


{


double a=4.3, b = 8.2, c = 3.3, d = 1.1;


Complex%26lt;double%26gt; x, y(a,b), z(c,d), k;





cout %26lt;%26lt; "Enter a complex number in the form: a + bi\n? ";


cin %26gt;%26gt; k;


cout %26lt;%26lt; "x: " %26lt;%26lt; x %26lt;%26lt; "\ny: " %26lt;%26lt; y %26lt;%26lt; "\nz: " %26lt;%26lt; z %26lt;%26lt; "\nk: "


%26lt;%26lt; k %26lt;%26lt; '\n';


(x = y + z);


cout %26lt;%26lt; "\nx = y + z:\n" %26lt;%26lt; x %26lt;%26lt; " = " %26lt;%26lt; y %26lt;%26lt; " + " %26lt;%26lt; z %26lt;%26lt; '\n';


(x = y - z);


cout %26lt;%26lt; "\nx = y - z:\n" %26lt;%26lt; x %26lt;%26lt; " = " %26lt;%26lt; y %26lt;%26lt; " - " %26lt;%26lt; z %26lt;%26lt; '\n';


(x = y * z);


cout %26lt;%26lt; "\nx = y * z:\n" %26lt;%26lt; x %26lt;%26lt; " = " %26lt;%26lt; y %26lt;%26lt; " * " %26lt;%26lt; z %26lt;%26lt; "\n\n";


if ( x != k )


cout %26lt;%26lt; x %26lt;%26lt; " != " %26lt;%26lt; k %26lt;%26lt; '\n';


cout %26lt;%26lt; '\n';


x = k;


if ( x == k )


cout %26lt;%26lt; x %26lt;%26lt; " == " %26lt;%26lt; k %26lt;%26lt; '\n';





int e=4, f=8, g=3, h=2;


Complex%26lt;int%26gt; l, m( e,f), n(g,h ), p;





cout %26lt;%26lt; "Enter a complex number in the form: a + bi\n? ";


cin %26gt;%26gt; p;


cout %26lt;%26lt; "x: " %26lt;%26lt; l %26lt;%26lt; "\ny: " %26lt;%26lt; m %26lt;%26lt; "\nz: " %26lt;%26lt; n %26lt;%26lt; "\nk: "


%26lt;%26lt; p %26lt;%26lt; '\n';


(l = m + n);


cout %26lt;%26lt; "\nx = y + z:\n" %26lt;%26lt; l %26lt;%26lt; " = " %26lt;%26lt; m %26lt;%26lt; " + " %26lt;%26lt; n %26lt;%26lt; '\n';


(l = m - n);


cout %26lt;%26lt; "\nx = y - z:\n" %26lt;%26lt; l %26lt;%26lt; " = " %26lt;%26lt; m %26lt;%26lt; " - " %26lt;%26lt; n %26lt;%26lt; '\n';


(l = m * n);


cout %26lt;%26lt; "\nx = y * z:\n" %26lt;%26lt; l %26lt;%26lt; " = " %26lt;%26lt; m %26lt;%26lt; " * " %26lt;%26lt; n %26lt;%26lt; "\n\n";


if ( l != p )





cout %26lt;%26lt; l %26lt;%26lt; " != " %26lt;%26lt; p %26lt;%26lt; '\n';


cout %26lt;%26lt; '\n';


l = p;


if ( l == p )


cout %26lt;%26lt; l %26lt;%26lt; " == " %26lt;%26lt; p %26lt;%26lt; '\n';








return 0;


}

Need help fixing the errors in this Template C++Program. I'm lost.Seems to be the same error repeatedly.Thanks
Haven't compiled your code, but looking at the definitions:





-Your +,-,* operators should return Complex%26lt;T%26gt;, not T - when you add two Complex%26lt;T%26gt;, you want to get a Complex%26lt;T%26gt; object and not a T object back.





-Your ==,!= operators should return bool, as these are logical operators.





-Your private members should be of type T - otherwise, when you assign them, you are implicitly saying that T is a specific type.





-In your constructor, you are redeclaring your members; use something like





Complex( T r, T i ) : real( r ), imaginary( i ) { }





to initialize them.





-In your operator implementations, you need to set a type for your return object. You'll need to declare them as Complex%26lt;T%26gt; objects, not just Complex.
Reply:It might help to know what the error message is./

nobile