wk 5 discussion functional programming due thurs wk 5 functional programming due mon

Wk 5 Discussion – Functional Programming [due Thurs]

Post a total of 3 substantive responses over 2 separate days for full participation. This includes your initial post and 2 replies to other students.

Due Thursday

Respond to the following in a minimum of 175 words:

Research the following:

  • The definition of def
  • The purpose of “def someFunction(x,y):” within a program

Discuss the following questions:

  • What are the main benefits of functional programming?
  • Why do functions play a useful role in creating programs?

Provide examples of why you would use a function in a program and how a function might be applied within a program.

Provide an example to reinforce your arguments.

Due Monday

Reply to at least 2 of your classmates. Be constructive and professional in your responses.

Wk 5 – Functional Programming [due Mon]

Assignment Content


  1. Your software company was invited to provide a proposal for a company in Australia. You currently have the cost in US dollars and need to convert the prices to the Australian dollar. Write a 2-part program using Ruby, Java®, or Python. Part 1: Write a function to gather the following costs from the user:

    • Travel Cost: $9,800
    • Hotel Cost: $3,500
    • Rental Car Cost: $1,600
    • Labor Cost: $15,500

    Part 2: Write a function to convert the costs from United States dollar (USD) to Australian dollar (AUD).
    Note: Look up the current USD to AUD exchange rate to use in your function. Test the program 3 times by providing different costs in USD. Provide the code and take a screenshot of the output, then paste the screenshot(s) into a Microsoft® Word document. Write a half-page response in the same Microsoft® Word document to address the following:

    • Provide a manual for the user explaining how to use the program.
    • Explain what type of user input validations you should have. What happens if the user enters a negative number? What happens if the user puts a $ in the input?

    Review the readings for this week from
    Ruby on Rails Tutorial or the Pluralsight videos if you have additional questions on deploying Ruby applications. Submit your document.

 
Looking for a similar assignment? Our writers will offer you original work free from plagiarism. We follow the assignment instructions to the letter and always deliver on time. Be assured of a quality paper that will raise your grade. Order now and Get a 15% Discount! Use Coupon Code "Newclient"