Chat with us, powered by LiveChat PYTHON | Wridemy

PYTHON

Question 1: Getting the Data

Dr. Nam Bo Phan approached QHR with a problem to solve. She has recently learnt of a process digitSquareSum() that takes a number and returns the sum of the squares of each of its digits. She asked her assistant Ken Nothad to build a list of results for the numbers 1 to 500.

X

digitSquareSum(x)

1

1

2

4

Ken got started on the list, but got tired of punching the digits in his calculator. Dr. Phan would like us to produce this list.

Requirements

  • Implement digitSquareSum()
  • Implement a function questionOne() that returns a Java File object for a CSV file that has the following data populated:
  • 1 -> 1
  • 89 -> 145 -> 42 -> 20 -> 4 -> 16 -> 37 -> 58 -> 89
  • Implement a function questionTwo() that returns the ascending numbers as a comma-separated String (e.g. 1,7,10,…)
  • Implement a method questionThree() to determine how many starting numbers between 1 and 10 million inclusively take more than 7 executions of digitSquareSum() to reach an 89.
  • questionThree() should be optimized for speed.

1,1

2,4

3,9

500,25

Question 2: Forming the Link

Dr. Phan has found that by performing digitSquareSum() multiple times, two numbers get back to their original number:

She asked Ken to identify which of the original numbers, between 1 and 500, will arrive at 1 after multiple iterations of performing digitSquareSum(). Ken is threatening to quit.

Requirements

Question 3: Taking on the World

Ken has called QHR to say that Dr. Phan has been rocking in her chair and going on about world domination. Her latest request has Ken fearing for his sanity and his life.

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Wridemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order

Related Tags

Academic APA Writing College Course Discussion Management English Finance General Graduate History Information Justify Literature MLA