We have a function which takes upto 9 numbers and add/multiply as argument
Operate(1,3,5,56, add)
Operate(2,3,5,6,76,8, multiply)
Operate(4,2,3,4,add)
Operate(4,677,6,7,8,9,3,4,5,add)
How can i write a function to cater these needs.

like
Posting as :
works at
You are currently posting as works at

Using var args and switch case

Use method overloading.

Related Posts

Commercial real estate question. When a residential property will likely zone commercial in the coming years, do we, the owner, wait for a buyer/developer to contact us?

like

Any beginning female golfers here?

Anybody in the Tampa Bay Area wanna play a round?

Best Bay Area golf / country clubs? I’m moving out west and trying to get a sense for the private golf scene. What are joining processes like, down stroke, monthly’s, etc.

like

Anyone else holding out to 1 year AT LEAST, in order to get long term cap gains tax rate? 🙏🏻 every day passing is a day closer

like

How is Novartis account in Accenture?

like

Let's have a productive conversation about the Google employee who was just fired for his controversial diversity memo

like

Anyone have experience exiting to a biotech with no commercial products? PH I/II lead asset targeting multiple indications. Pros and cons?

like

Contemplating an offer at Big pharma for Validation Lead (non-managerial) role. Have 4 years experience with a masters degree. Any suggestions of what the base compensation range would be in big pharma for a similar role ?

like

Where are the most opportunities in LS Consulting? I’m looking at moving to NYC but wondering if Boston or SF is a better play. Ideally prefer to be in an in-person/hybrid role.

like

Sooryavanshi! Total paisa vasool! 😀

like

Anyone working with Goldman Sachs in the engineering field up for a little chat ? Kindly do me Goldman Sachs

like

Hi everyone! I'm currently looking
for an entry level tech consulting
position! I graduated in May 2021 with an MIS degree and started working as a client specialist. The work is not challenging enough so I'm looking to make a change. If anyone would be willing to chat for a bit about roles
available at your company and maybe
even refer me that would be great!

like

Why People Are Quitting Their Jobs

Post Photo
like

Anyone know the base salary for VP position at Visa North America?

like

Can you share a problem that you encountered in your last research project? How did you overcome it?

like

Does anyone here freelance (in design or deckmaking) on top of their full time position? How does that work?

Thinking ahead for next year
With the Pathway to Parenthood program which insurance provider have you used (Anthem BCBS or UHC) ?

like

Additional Posts in Automation Testing

Hi All,
I am looking for a job change. I have 6.6 year of experience. I work in manual+automation testing.Mainly working on AP

Selenium with web driver for web apps or mobile testing with appium? Which one is easy?

Hi fishes I’m currently working with webdriver io with Javascript since past 4 months alone with manual testing, currently I have one year of complete manual testing and 4 months of automation + manual testing, I want to crack outside interviews and need suggestions on how to prepare for interviews and suggest me if I need to continue with webdriver io or try to switch into selenium Java

Hi Fishes,

I am looking for opportunities currently and any referrals for the below mentioned skill set would be helpful.

Domain Knowledge : Cisco Switches & Routers / Cable modems
Protocols : VLAN,STP,RSTP,DHCP,ARP,RIP,OSPF (Functional knowledge)
Scripting knowledge : Python and TCL


Having 6.9 YOE in feature/functional testing. Currently serving notice period with ~70days left in service.

FYI, currently looking for opportunities in Chennai only. Any leads would be much appreciated.

People on the app are posting great salaries 30+LPA, 40+ LPA
But not sure how many are for QA or SDET.
Can we really negotiate YOE*3.5 and above?

What skills do they look for?
DS or Algo is not on list for QA right?
What's the skill we need to learn to reach 40Lpa+ for 7-9YOE.

If you are one who cracked it, do share your path/exp.

like

Hi fishes, what would be the ideal “good” salary for a QA with python automation for 6.5 years of experience ?

! ATTENTION !
For a Test Engineer of 3 YOE , what would be a decent package ?
I am getting 15 fixed ( 17 LPA CTC ) , i think it is good and maybe on a higher end for my experience but would like to know ur opinion on the same.

like

Hello Fishes,
I have 3 yoe in Manual Testing and one year in selenium java automation testing. I am preparing for interview. What are the important topics for interview?

Thanks in advance.

like

There is an open position for C# Automation testing resource.

Client: Credit Suisse
Payroll: Atyeti

Interested folks can DM me.

Note: Possibility of getting converted to an FTE of CS based on performance.

Do you have anyone in Bangalore who holds a Tech Degree and who knows Bengali fluently- written( Must ) with Software Testing experience?

Please reach out to me through Linkedin and share your profile.

Note : There is no other requirements as of now please do not ping for other requirements

Please go through the JD attached if you meet the requirements please connect.

Post Photo

If Any one need referral in IBM .please dm

like

What skills are in demand for automation engineer? Please suggest tools and technologies to learn that useful while switching company?

like

Hi All
Can anyone refer me. I have 2.4 years of experience in both manual and automation testing.
Thank you

Hi fishes , any one have any idea or suggestions on how to prepare for second round of interview for Amazon , what concepts to concentrate regarding the coding part ?

like

I am getting a good project in current company where there will be lot of learning
Initially it will be manual and then it will have automation testing. At the same time I have an offer in another company with good package but there won't be much learning compared to the current company project I am yet to get locked. Is learning important and priority for 4.5 years of experience? Or better to go with the high package offer? (Other company offer is from TCS). Your valuable comments would help.

like

Welcome to Automation Testing group. Please feel free to share your testing related queries, comments, solutions, tips n tricks here

helpful

I haven't received any interview calls been 2-3 months now, my profile itself is not getting shortlisted for some reason. My NP-90 days in Naukri and LinkdIN. I get some calls from HR asking about my details but then they say I will talk to my tech lead and get back to you if your resume get shortlisted.

Sigh... Situation is messed up atm. Not sure how to make my first career switch.

New to Fishbowl?

Download the Fishbowl app to
unlock all discussions on Fishbowl.
That was just a preview…
Sign Up to see all discussions
  • Discover what it’s like to work at companies from real professionals
  • Get candid advice from people in your field in a safe space
  • Chat and network with other professionals in your field
Sign up in seconds to unlock all discussions on Fishbowl.

Already a user?
Login here

Share

Embed this post

Copy and paste embed code on your site

Preview

Download the
Fishbowl app

See what’s happening in your industry
from the palm of your hand.

A phone with Fishbowl app

Scan your QR code to download
Fishbowl app on your mobile

Download app

Sign up for free to view this conversation on Fishbowl

By continuing you agree to Terms of Use and Privacy Policy

Already have an account? Log in

Sign up for free to continue using Fishbowl

By continuing you agree to Terms of Use(New) and Privacy Policy(New)
Messaging rates may apply

Already have an account? Log in

For account settings, visit Fishbowl on Desktop Browser or

General

Legal