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.

lazy 4151
Simple program help....?
it says uninitialized local variable for (amt, Y, N) im just getting more and more confused the more i mess with this.
/////////////////////////
// Neal Sopcic
// Final Project
/////////////////////////
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
float ;
double cost, amt,tank,tacos, amcos;
int ;
char tankempty, Y, N;
cout << "How much does a gallon of gas cost?" << endl;
cin >> cost;
cout << "How much gas does your tank hold?" << endl;
cin >> tank;
cout << "Is you tank empty? (Y for yes & N for no)" << endl;
cin >> tankempty;
tacos = tank*cost;
amcos = amt*cost;
if (tankempty==Y){
cout << "Your tank refil was " << tacos << " dollars" << endl;
}
if (tankempty==N){
cout << "How many gallons would you like to put in" << endl;
cin >> amt;
cout << "Your tank refil was " << amcos << " dollars" << endl;
}
return 0;
}
2 AnswersProgramming & Design10 years ago1 error in this program and it wont tell me what it is.?
there is one warning and that if from the float that i have and am not using but there is also an error that i cant figure out
/////////////////////////
//
// Assignment 14
/////////////////////////
#include <iostream>
#include <iomanip>
using namespace std;
int main(){
float;
double timeTalk;
int PhoCall;
cout << "How many minutes did you talk on the phone?" << endl;
cin >> PhoCall >> endl;
timeTalk = 1.99 + 2.00 + 0.45*PhoCall;
cout << "Your total fee is" << endl;
cout << timeTalk << endl;
cout << setprecision(2) << fixed << timeTalk << '\n';
return 0;
1 AnswerProgramming & Design10 years agoraccoon hunting question.?
When i go coon hunting it is typically one person shooting and another below the tree waiting for the coon to fall out so he can hit it with a blunt object like a bat. I have heard from more than 1 person that it is illegal to use a bat to do that. that does not make much sense at all. i mean, no matter what your going to be killing it. why would it matter what type of club you use. is this true or not?
7 AnswersHunting10 years agoRaccoon Hunting Question.?
When i go coon hunting it is typically one person shooting and another below the tree waiting for the coon to fall out so he can hit it with a blunt object like a bat. I have heard from more than 1 person that it is illegal to use a bat to do that. that does not make much sense at all. i mean, no matter what your going to be killing it. why would it matter what type of club you use. is this true or not?
2 AnswersHunting10 years agoWhat type of oil do i use?
I have a 2004 toyota camry and I am trying to figure out what type of oil i need to use to change it as well as how much oil i need to use. i looked in the owners manual and i found it say SAE 5W-30. But it does not show anywhere how much i need to use.
4 AnswersMaintenance & Repairs10 years agoTypes of Interactions on a reef?
list two different types of interactions on a reef and the species involved.
2 AnswersZoology10 years agodoes this mean anything?
my girlfriend is on birth control but she has been on antibiotics for the last week. i know that antibiotics can affect the birth control and make it less affective, but can it also change the timing of the period? or just kinda mess it up for a bit?
1 AnswerWords & Wordplay10 years agodoes this mean anything?
my girlfriend is on birth control but she has been on antibiotics for the last week. i know that antibiotics can affect the birth control and make it less affective, but can it also change the timing of the period? or just kinda mess it up for a bit?
1 AnswerPregnancy10 years agoNetflix, why would you do this?
How do you think this huge price increase is going to turn out for netflix?
6 AnswersMovies10 years agoCan this be shown in the paper?
yesterday, one of my buddies got arrested for having a bowl in his pocket. so he is getting charged with having drug paraphernalia. he is only 17 years old. will the charge be shown in the newspaper with his name and everything?
3 AnswersMedia & Journalism10 years agowhat is this fish? i have no idea?
today fishing at a kinda small freshwater lake in norther illinois i caught a fish that i have never seen before. i fish quite alot but have never seen it before. it was the size of a large sunfish or bluegill but the scales were a dark brown and black and the eyes were strait red, aslo, the fish had small teeth. i have never seen a fish like it. im not sure if it was a small walleye or what.
4 AnswersFish10 years agoCan a liquor store take the id if it does not look enough like you?
i tried to buy some booz the other day and the worker thought it did not look like me in the id, she then attempted to take it. I eventually convinced her it was me and she gave it back but would still not sell to me. Is she legally able to take the id?
4 AnswersBeer, Wine & Spirits1 decade agodo you girls think tattoos down the ribcage is attractive?
Im getting a tattoo down my side a little later today. Im 6'1, 200, can bench 315, and pretty cut. Would u find it more or less attractive?
6 AnswersTattoos1 decade agoI pass out whenever i give blood, but i want to get a tattoo.?
So i don't know why but i pass out whenever i give blood. I have tried 3 times and 2 out of the times i completely passed out and started shaking, the other time they took the needle out just in time. I am 200 lb. 6'1 and very athletic. I don't have diabetes or any problems that i know of. So what should i do if i want to get a tattoo. Is it a lost cause? or should i try anyway
5 AnswersTattoos1 decade ago