Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Axis_Crusher
(C++)What is the output produced by the program below?
I tried going through the code in my head and on paper.
I even duplicated this program in C++ (I had to modify the code since it just crashed outright) and yet I do not exactly get any one of these options.
2 AnswersProgramming & Design4 years agoIn C++ why is 641 / 10 not 64.1?
Kindly see the code below.
If I enter the following:
ship_mass = 640
ship_volume = 10
Then the ship floats.
However
ship_mass = 641
ship_volume = 10
The ship sinks (despite the result being 64.1 which means equal to the const)
#include <iostream>
using namespace std;
int main()
{
char exitchar;
const double water_density = 64.10;
double ship_mass, ship_volume;
cout << "Please enter the following details with regards to the ship...\n";
cout << "Mass: ";
cin >> ship_mass;
cout << "Volume: ";
cin >> ship_volume;
if ((ship_mass / ship_volume) > water_density)
cout << "The ship will sink.\n";
else
cout << "The ship will float.\n";
cout << "Please enter any character and press RETURN to exit\n";
cin >> exitchar;
return 0;
}
10 AnswersProgramming & Design4 years agoWhy is 3.0 / 4.0 + 3 + 2 / 5 = 3.75?
I am studying C++ and one example is 3.0 / 4.0 + 3 + 2 / 5 = 3.75.
How is this calculated?
If I use the Order of operations I get this:
3.0 / 4.0 + 3 + 2 / 5
0.75 + 3 + 0.4
4.15
If I do it in order this happens:
3.0 / 4.0 + 3 + 2 / 5
0.75 + 3 + 2 / 5
3.75 + 2 / 5
5.75 / 5
1.15
Maybe I've been at this for too long and need to take a break, but I really need to understand what happens here.
1 AnswerProgramming & Design4 years agoWhat can I expect from a hydrocelectomy with local anaesthesia?
Since this question deals with a very sensitive topic I just want to first warn anybody reading this that the condition discussed here is not for sensitive viewers.
In 2011 I had a left hemicolectomy done because my colon was longer than normal. The catheter UTI 2 weeks later. My GP treated this with an antibiotic and Urizone. About 4 months later a swelling started forming on my left side. The doctor said that it will subside.
June last year (2014) swelling was the size of a golf ball. I went to see my surgeon. I had an ultrasound done and the hydrocele was diagnosed.
The next day I saw a urologist. He did a urine test said the main cause was epididymis. He gave me a course of antibiotics and said I must apply heat to promote blood flow.
He scheduled me for a cystoscopy to check for a possible stricture. Then I found out the medical aid dropped me and I cancelled any further treatment.
By June this year the hydrocele was a tennis ball - uncomfortable, obvious through bulge in pants and hurting my right testis. I decided to go to a government hospital and after many appointments and tests (another ultrasound and a voiding cystourethrogram) The doctor said nothing else is wrong. I am now scheduled for a hydrocelectomy with local anaesthesia within a few days.
Being a government hospital the doctor did not have the time to discuss the procedure with me so I am at a total loss as to what to expect before, during and after. I am South African, for the record.
2 AnswersMen's Health6 years agoAny comments on this gaming rig?
4 years ago I bought myself a decent gaming PC for ZAR11000 with the following specs:
Q8200 2.33GHz Quad Core
4GB DDR2 800MHz RAM
ASUS Rampage Formula Motherboard
Forsa 9800GT graphics card
EZcool 950W power supply
Seagate 1TB harddrive (storage)
Western Digital 160GB harddrive (operating system)
Well since then my PC met lightning and I had to do a budget repair replacing the 9800GT with a Forsa GTS450 (192 bit bus and GDDR5 memory) and the ASUS P5QL-EM motherboard.
I can't add more RAM because of the chipset limitation and my GPU needs an upgrade to run the latest games at max.
So upgrade time:
Core i5 3550 processor 3.3GHz
Evga GTX560 2GB Superclocked
8GB Corsair Vengeance RAM
ASUS P8Z77-M motherboard
120GB solid state drive (operating system)
This will cost me ZAR10000 but due to being employed by a IT company I'll get off paying around ZAR75000
I know this will seriously waste the latest games but I need regular and serious guys to give their opinions especially on the graphics card. I wanted to thake the ASUS GTX560 CU but a customer bought it and I built the guy's PC (P8Z77V-LX plus the graphics card and also a 3550) and we can't source ASUS cards any more but Evga instead. Any thoughts?
2 AnswersPC9 years agoTrigonometric identity of f(x)=2sin(2x) and g(x)=2tanx?
f(x) = 2sin(2x)
g(x) = tanx
Question 1
Determine the general solution of f(x)=g(x)
Question 2
For which values are 2tanx-2sinx < 0
Please show all calculations as each sum counts 8 marks each
2 AnswersMathematics1 decade agotrigonometric identity of f(x)=2sin(2x) and g(x)=2tanx?
f(x) = 2sin(2x)
g(x) = tanx
Question 1
Determine the general solution of f(x)=g(x)
Question 2
For which values are 2tanx-2sinx < 0
Please show all calculations as each sum counts 8 marks each
2 AnswersHomework Help1 decade agoIs this PC luck even possible?
I have a pretty expensive computer +- a year of age.
A month ago I got ADSL and all that jazz (it connects with my ethernet port).
Last night 2 sudden lightning strikes rang out basically on top of the house and the power tripped.
After turning on the power I tried to start the PC...nothing, the modem was also dead.
I had a lot of gadgets like a printer, scanner, DVD, router, monitor, PC and TV running from the same outlet.
Only the router and PC was dead. My motherboard's lights flash(it is a rampage formula). I can smell the distinct odour of fried circuitry. I tested the surge protector, UPS and all those "lightning protectors" - strangely my PC's power supply is 100% fine.
My conclusion is thus:
*Lightning hits telephone line
*Lightning travels to router
*Router gets blasted
*Surge travels to ethernet cable
*Surge reaches PC's ethernet port and motherboard meets his fortune
===What a mess that is!
The other PC in the house with its own router is fina as well as the telephone.
Any ideas to if this might be the case and if insurance might cover the expenses, else it is one expensive white elephant!
Thanks
4 AnswersDesktops1 decade agoSocial networking (IT PAT 2010)?
(1)Which components will be necessary to create a social network to begin (eg sharing files, communication methods, white-boarding)?
(2)Which companies can use it and why?
(3)What could be possible constraints on such a network?
(4)Any suggestions or comments (if relevant)?
Note: My task is to design a social network program in Delphi that is sort of a mix of Facebook and Net Meeting.
2 AnswersComputer Networking1 decade agoVeiled chameleon crisis?
My dad bought a yong veiled chameleon on Monday(yesterday). He is about 10cm long. When we put him into the vivarium he started to climbed and we were stunned to see he is shaking, not lightly, but extremely bad. So bad he could scarcely climb. He ate 4 crickets in short succession. This morning we found him just lying on the floor. He is alive. He constantly looks around. He is also shedding his skin.
There is a large female with him in the cage.
2 AnswersReptiles1 decade agoWhat does despair look like?
Hi, I am in Grade 10 and I have to make a 1 minute speech of
"How despair looks like?" I have some ideas, but it is not enough.
The second part is a dialogue between a worm and a peach.
Can someone please give me some ideas??
I would really appreciate it.
Thanks
2 AnswersHomework Help1 decade agoThis is very critical!! Please help!!?
My sister's cockatiel has super huge poops once a day. Yesterday I noticed she doesn't poop anymore. We looked and it appears that there is some type of flesh hanging out at the "rear end". It doesn't bleed. It appears to be painful. We pulled it out a few millimeters. She now poops some black, foul-smelling waste. The vet can't see us for 2 days. What can I do in the meantime to keep her stable???
She is 1-and-a-half years old. She still eats a lot.
5 AnswersBirds1 decade agoShould I be worried?\What can I do?
I have a grey cockatiel. He is about 7-8 years old. My best friend. Recently I noticed that some of the feathers round his eyes are falling out. He lives with another one. Is this serious? Can it be treated?
PLEASE help.
4 AnswersBirds1 decade agoPLEASE help me!!! Major problem!?
My PC is driving me mad.
It suddenly shutted down and doesn't want to start up.
The power and HDD lights are on, but the startup beep doesn't sound.
The monitor doesn't switch on when I turn the PC on.
The PSU, CPU, System and GPU fans are working.
I suspect it is the HDD or my motherboard.
My motherboard, GPU and PSU is 2 weeks old.
Please tell me what you think.
Thanks a lot.
4 AnswersDesktops1 decade agoWhat do you think of this?
Hi
I am soon going to build my own PC. I started a chilli business and the profit is for my PC.
I live in the RSA. To give you an idea, a GTX280 GPU costs R8000.
A standard house R1 million.
I don't want to upgrade for a few years, so I have high expectations.
My specs:
POWER SUPPLY
Low noise. Super ventilation. Special Dust Protection.550W
MOTHERBOARD
Biostar G31-M7
FSB 1600MHz; PCI-E X16; Supports 45nm Processors; Dual DDR2-800; Lan; Intel G31 Express Chipset; Supports Core 2 Quad; Supports Core 2 Duo; Vista Hardware Ready
SATA Hard Drive
250GB 16Mb Cache @10 000rpm
Intel Core2 Duo E8400 Processor
3.0GHz
1333FSB
45nm
6MB L@ cache @3GHz
Memory 800MHz 4GB
Forsa 9800GT
DDR3 1GB
Quad SLI-Ready
Direct X10
TFT Monitor
Resolution: 1280x1024
Pixel Pitch: 0.294 x 0.294mm Display Colors: 16.7M Brightness: 250cd/m2 Contrast Ratio: 600:1 19"
Windows Vista Home Premium 32-bit
This works out at around R10 600
This is where I buy:
www.matrixonlineshop.co.za
www.kalahari.net.
If you have any advice, it would be appreciated.
Thanks.
4 AnswersDesktops1 decade agoADVICE NEEDED FOR PC!!!?
I don't want to upgrade it for the next 4-6 years.
It must run a LAN, 2 printers, 2 DVD-RW, Joystick, HSDPA modem, the latest games. etc, etc, etc.
My budget is R15000 \ $1472.75
Case
Thermaltake SOPRANO DX Series 140mm front and 120mm rear fans
PSU
Power Supply
Low noise. Super ventilation. Special Dust Protection.
Motherboard
Intel Classic Series Eva Cove G35
12 USB ports
4x SATA ports
2x IEEE-1394a interfaces
1333 FSB
HDD
Seagate SATA Hard Drive
16MB Cache @ 7200RPM - NCQ
CPU
Intel Boxed Core2 Quad Q9300 Processor Architecture:45 nanometer technology
L2 Cache: 6M
FSB: 1333
RAM
OCZ PC2-6400 DDR2-RAM 800MHz Kit SLI-Ready XTC
Graphics
Forsa 8800GT DDR3
SLI-Ready
Monitor
PROLINE LCD
Resolution: 1280 X 1024
Brightnes: 250 cd/m2
Keyboard
Microsoft internet keyboard ps/2
Mouse
Black and Silver Mouse
Optical
OS
Windows Vista Home Premium
Speakers
MORRO - 221 2.1channel
4 AnswersDesktops1 decade agoHow can I stop my friend from being murdered?
My friend and his "girlfriend" fight permanently. She permanently drinks alcohol. She is 17. He is 25. She kicks the dogs, damages his property, etc. She uses him. I know, because she permanently (you know what) wit other lesbians. She already meed 2 attempts to kill him. She now hired a black man to kill him. I know that, because the "assasin" visited him and told him he will be shot on the road by a taxi driving by. He doesn't want to lay a charge, since she doesn't have a driver's license and he gives her permission to drive. He can get into big trouble. We already "removed" the dogs out of harm's way. WHAT CAN I DO TO SAVE HIM???
10 AnswersFriends1 decade ago