Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now 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.
Eyedoc
need some programming help?
i am a beginner programmer and i need a help wit a few programs . i know there arent many java programmers anymore but this has to be done in blueJ only. there are abt 5 programmes (pls). i would really appreciate help in the form of a program.these are the programs i need to execute.
also the nos are the main questions and the letters are the sub bits under that
1.i have to print this pattern
___________1
__________121
_________12321
________ 1234321
_________12321
__________121
___________ 1
this should be done by nested for() loop only and apparently we dont have to use scanner class or anything like that.
ignore the underscores.yahoo keeps ignoring the space i keep instead the pattern should like a diamond with those nos and you dont have to print the underscores
2.i should also write two programs that uses for() loops to find each one of these:
a)we shoulld print the sum of x/2! + x^2/3! + x^3/4!.........n terms (n is a no we accept through a method)
for those who dont know ^ indicates index for example 3^2=9 since 3 squared is 9 and 3^3=27 since 3 cubed is 27. and ! indicates factorial. for example 2!=2*1 and 5!=5*4*3*2*1 and 3!=3*2*1
b)x!/10 + (x+2)!/15 + (x+4)!/20+..........+(x+n)!/m!
n is a no we accept through method and i guess m is the multiple of 5 that we would get by the time we reach (x+n)!
3.we should write a menu driven program using scanner class which displays a menu consisting of 2 options.also when we enter 0 the program should terminate . we should use do while loop for the terminating part .
a)accept a no through method and check whether it is a neon no.
a neon no by the way is a no whose sum of digits of its square is equal to the no itself.
ex: 9
9 squared is 81
81s digits are 8 and 1
8+1=9 so 9 is a neon no
we should do this by using for loop
b)accept a no greater than 0 by scanner object (you know scanner ob=new scanner();int ob=nextInt();)
and print the sum of the prime no digits of the no we accepted
ex:we accept 4326
prime no digits are 3 and 2 so 3+2=5
and we should print 5 this should be done by for loop as well
appparently we have to invoke methods to execute the above to functions
4.accept a string thorugh method i guess and convet the string to lowercase and shift each letter to the left in the alphabet(using string functions)
ex:HELLO
output: gdkkn (g comes before h and d comes before d and so on)
5.inout a string and convert each uppercase letter to lower case and each lower case to upper
ex:JaVa PrOgraMs
output should be :jAvA pRoGRAmS
this should be done by string functions as well
if you read all that then kudos to you and sorry for the amazingly long question i really need help.
1 AnswerProgramming & Design8 years agoWhat type of schooling (CBSE or ICSE or IBDP) is best suited for students from India to secure admission in Un?
For a student studying Class/Year 9 in India and interested in pursuing undergraduate course in Mathematics in the UK or USA in a reputed university, which type of schooling is suitable (ICSE or CBSE or IBDP) so that he can compete with local students in securing admission?
4 AnswersOther - Education9 years agoWhich one of the new smartphones is the best?
Planning on buying a new smartphone with internet, email facilities. I need my phone for keeping me connected on the go with easy accessibility to net and talk. Basically it is business purpose with spreadsheets, word docs etc.May occasionally need to look at photos sent in emails. Please suggest me a good phone, a reasonably priced one.
5 AnswersCell Phones & Plans1 decade agoIs it that difficult to say a word like "SHILPA"?
Is it more difficult than words like Constance, Fitzgerald, Ferdinand, Christopher, Pritchard, and so on..........
I agree that is a different name and not familiar in a land of christian names. But is it difficult?
Dont you think a little or may be no effort would do?
16 AnswersLanguages1 decade agowhy do Americans say "Zee" when they pronounce letter "Z"?
The letter Z is pronounced as ZED in he UK and all commonwealth countries, then why Americans say it Zee
What do they call letter "G"?
If it is phonetic, then shouldnt they call all senteances and worlds should be pronounced phonetically.
16 AnswersLanguages1 decade agoWhat is this with Celebrities and famous personalities asking questions on Yahoo answers?
Now every famous, not so famous celebrity or personalities are posting questions on Yahoo answers.
Is it a move by Yahoo or they want to prove that they are not dumb?
18 AnswersCelebrities1 decade agoWho do you think is the greatest leader of India ?
In the last 100 years.
13 AnswersOther - Politics & Government1 decade agoHow to close the dialog box in Norton internet security suite?
My norton internet suite detected a network and displaying the message." NEW NETWORK DETECTED.....To join this network, select the location that has the security settings you want to use.
My computer is home computer and don t know what is happening? I do not want to join that network. But, I can not close the dialog box as the cross mark(close mark) is greyed out and when I am trying to close that on windows task manager, my norton internet security is closing.
How to close the dialog box with out closing the norton security and not join the network?
Please help.
1 AnswerComputer Networking1 decade agoIs computer being hacked?
When I switched on my computer today, my norton internet security suite displaying message "New network detected" giving the IP address and Gateway Mac numer.
Its asking me to set up connection. Does it mean my computer is being attacked? Please tell me what to do?
5 AnswersComputer Networking1 decade agoHow to get rid of a cross on my desktop?
I recently changed the desktop background picture from one on internet.
Then I ended up having a cross in the middle of the desktop close to the upperborder. I tried to change to a different picture on my computer but the cross is not disappearing.
The cross is similar to one you find when a picture on any webpage does not show up.
3 AnswersOther - Computers1 decade agoThe world is degenerating!?
What do you think/
People are losing faith in God
Uninhibited sex
Alcohol, smoking, Drug Abuse.
Loss of family Values
Racism, Exploitation.
What else do you need to say that world is not degenerating?
3 AnswersOther - Society & Culture1 decade agoChefs, do they deserve that much celebrity status?
I understand culinary skills are like natural talent and they are artists in a way. But, do they deserve that much attention?
9 AnswersOther - Food & Drink1 decade agoWho do you think will be the next superpower? of course apart from USA?
China
India
Brazil
Russia (again)
13 AnswersOther - Politics & Government1 decade agoThe noblest soul of 20th century?
Please rate the top 3 noble humans.
5 AnswersOther - Society & Culture1 decade agoWhich is best ? LCD or PLASMA TV?
I know both have their advantages and disadvantages.
But I would like to know which is best in your experience,
8 AnswersTVs1 decade agoYour reasons for being a vegetarian or non vegetarian?
Are you a vegetarian or non vegetarian?
Give your reasons.
10 AnswersOther - Food & Drink1 decade agoIndian or Chinese? Which cuisine do you like?
33 AnswersOther - Food & Drink1 decade agoBig Brother UK- Did Pete really win it?
Did Pete really win it ? All the opinion polls predicted Aisleyne as winner. But, she came third.
Is Glyn behaviour boasting Wales every minute justifiable ? Is it not regionalistic attitude?
3 AnswersTelevision1 decade agoOverseas call centres - do you love the service or hate it?
Please comment about the service,
Do not air your opinions about loss of jobs, globalisation disadvantages.
27 AnswersCareers & Employment1 decade agoBush is a coward and is full of crap - John Prescott, British Deputy PM What do you think?
Those are the words by Prescott and agreed by several Labour MPs.
Do yo agree?
16 AnswersCurrent Events1 decade ago