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.
Richard J
Write a program to determine the position of the last person standing if 40 people are in a circle and every 3rd person commits suicide.?
I don't want the actual code you used, I've written it myself for fun, not for class as I am not even in a programming class. I'm more interested in how professional programmers think.
What was the first thing you did to get started? Did you declare a class and create objects of it or did you use an array or another technique?
How many lines of code did you use and what programming language was it?
The position is either 8, 18, 28, or 38, if you ran the program did it work right and produce the correct number? What was it?
Lastly, how long did it take you to make it?
I'm open to answers from anyone interested in this sort of challenge, professional programmer, programming student, or someone who does this for fun like I do.
1 AnswerProgramming & Design5 years agoThe escape charcter \b in c++ and java?
What is the point of using \b? If I accidentally type "prograa" it makes more sense to hit the real backspace and type "m" than to write "prograa\bm".
Can anyone explain the usage of this? Thanks.
1 AnswerProgramming & Design6 years agoChanging whole array values c++?
If I have an array, let's say
int arr[4] = {2, 4, 6, 8};
And I want to change the values later in my program to let's say
1, 3, 5, 7
Is there a shorter, more efficient way than
arr[0] = 1; arr[1] = 3; arr[2] = 5; arr[3] = 7;
I know I could just declare a new array but I'd rather keep this one and change the values. Thanks.
1 AnswerProgramming & Design7 years agochild support for local nationals if you're in the US Navy?
if i joined the Navy and went to another country and got a local national girl pregnant, she can't make me pay child support right?
I've cut off communication with her so what steps would she take to get it from me?
I'm not really the one who did it, just trying to help someone out.
4 AnswersMilitary7 years agoMy laptop has weaker connectivity than other computers in the same location?
Other laptops in the same location connect stronger to the same signal. I have an HP, how could I go about fixing this? It connects, but has a weaker connection and drops a lot quicker. Thanks.
1 AnswerLaptops & Notebooks8 years agoFunny credit score commercial?
A guy walks into a gym and says hi to everyone, he lifts one weight, and then he leaves. Then the commercial says that checking your credit score once a month doesn't do much either. Does anyone remember this commercial or where I could find it? Thanks.
1 AnswerComedy9 years agoWhat hard evidence is there that the Crusades actually happened?
Do we just have stories, or are there actual artifacts of orders given out by the pope or people records of the victims?
3 AnswersHistory9 years agoAfter USCIS approves of a petition for a fiance, what then?
I got an email saying that they approved of my I129F , PETITION FOR FIANCE(E) and I am in the Post Decision Activity. For anyone who has filed with Immigration for an alien fiance before, what else did they require from you after the approval, prior to being able to bring your fiance?
Thanks!
1 AnswerImmigration9 years agoQuestion for Republicans?
Would you prefer to live in a society with a bunch of Democrats who work as hard as you, and pay their taxes?
Or would you rather live in a society full of Republicans that don't work and receive government aid at your expense?
6 AnswersPolitics9 years agoI cannot write to my Western Digital Passport. Help?
Several years back I purchased a Western Digital external "My Passport". I was using Windows and my system crashed. Since then, I have changed to Macintosh, then to Linux. I am using Ubuntu, and I cannot write to my Western Digital. Is there a way to access it? Thanks!
5 AnswersSoftware9 years agoMy neighbor caught me in bed with his wife and he told my girlfriend?
Now she is going to kick me out and I don't have a job or a place to stay. Could I go after him for some sort of financial retribution? What about alimony? I know we weren't married, but I need her money?
Also, I am looking for a new sugar momma, does any of the females here want a real man?
Thanks, and God bless.
7 AnswersMarriage & Divorce9 years agoSo I downloaded this movie and my computer stopped working?
It was from some website that I never heard about. My computer was over $1,000 and I couldn't get it to work, so I had to buy a new one.
Obviously, I don't know who made the file with a virus that I downloaded, but I know who made the movie. How much could I get in damages, since I am in this mess because of their movie to begin with?
Also, what sort of evidence would I need to file a lawsuit? Thanks,, and God bless.
5 AnswersLaw & Ethics9 years agoAre law enforcement officers required to apologize when they pull you over?
So I got pulled over for speeding, and the officer asks me for my license and registration. He told me that he had pulled me over for speeding.
He went to his police car and came back with a speedding ticket, and drove off. NOT ONCE DID HE SAY HE WAS SORRY for pulling me over OR giving me a ticket.
Do I still have to pay it? Could I do something to lower it?
Other than that, he seemed nice and well-mannered, so I wouldn't want him to get into too much trouble. I just don't want to pay this unfairly issued speeding ticket, and I am pretty sure that I don't have to.
If you guys could tell me what penal code absolves me of it, I would be most grateful. Thanks.
10 AnswersLaw Enforcement & Police9 years agoRecently I have been gaining quite a bit of weight,?
Now I can't afford a gym membership, but I do enjoy ice cream from time to time. What flavor will help me lose the most weight?
Thanks, this weight problem is really bothering me.
1 AnswerDiet & Fitness9 years agoIs it illegal to talk into the fan to sound like a robot?
I know a lot of people who let their kids do this, but I don't think it's right. I want to say something, but I need to know what laws have been enacted on this matter.
5 AnswersLaw & Ethics9 years agoMy dishwasher is not washing dishes, even though water is on the floor off it?
It's a Frigidaire.
It makes noise when turned on.
If I open it after 30 minutes to a couple hours of operation, there is steam, and water on the base of it, but the dishes are still dry (all of them, no matter where they are dispersed).
I dissassembled it, took it outside and sprayed it off, and brought it back in, but I am still not seeing it work.
------
Questions;
1. How can I troubleshoot whether it is water pressure or if it is the unit itself?
2. If the unit is good, but the water pressure is too low to support a dishwasher, what other options can I explore?
Thanks.
2 AnswersMaintenance & Repairs9 years agoWhat are the best HVAC systems you have dealt with and what are the worst?
Which systems need the least repair and tend to work the best? Thanks.
2 AnswersOther - Home & Garden9 years agoHow do I partition my hard drive without an OS?
I have a Haiku OS CD I am trying to install, but I need to partition a portion of my drive. I no longer have any OS on it, how might I do so?
2 AnswersDesktops9 years agoInstall WINE for Fedora?
I opened Terminal and typed "$ yum install wine" and I got the reply :Loaded plugins: langpacks, presto, refresh-packagekit
You need to be root to perform this command."
How do I become root like how it says? Thanks!
1 AnswerProgramming & Design9 years ago