Upload your .java file(s) to Ecampus under the “Submit Homework” menu option.

Upload your .java file(s) to Ecampus under the “Submit Homework” menu option.
1. Create a program named bunnies.java that recursively calculates the total number of rabbit ears. Rabbits are in a line numbered 1, 2, 3, 4, … The even numbered rabbits have 2 ears. The odd numbered rabbits have 3 ears. The exception to both of these rules is that every 5th rabbit has only 1 ear.Create a recursive method (no for or while loops) to calculate the total number of ears named BunnyEars(n). The recursive method should calculate the number of ears on the current rabbit, and call itself with the number of ears on the previous rabbit.BunnyEars(1) = 3 BunnyEars(2) = 5 BunnyEars(3) = 8 BunnyEars(4) = 10 BunnyEars(5) = 11 BunnyEars(6) = 13 BunnyEars(7) = 16 BunnyEars(8) = 18 BunnyEars(9) = 21 BunnyEars(10) = 22
1 2 3 4 5 6 7 8 9 10
| / /| |/| | / /| |/| / |/| | / /| |/| | / /| /
|| || || |||| || || || |||| || |||| || || || |||| || || || ||
||||/ ||/ ||||/ ||/ || ||/ ||||/ ||/ ||||/ ||
/ oo / oo / oo / oo / oo / oo / oo / oo / oo / oo
=_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/= =_ Y_/=

Example output
How many bunnies are in the line? 5
This is a total of 11 ears.

2. Create a program named sum.java that recursively calculates the sum of all the digits in an integer.
Create a recursive method (no for or while loops) named SumDigits(n).

Hint: When you mod an integer by 10, you get the rightmost digit
(169 % 10 is 9). When you divide an integer by 10, you remove the
rightmost digit (169 / 10 = 16).

SumDigits(1) = 1
SumDigits(14) = 5
SumDigits(169) = 16

Example output
Please enter an integer: 169
The sum of these digits is 16.
3. Write a program named recurse.java that recursively reverses the characters in a String. Create a recursive function named RevString that returns the last character of a string the remainder of the string.

Example output
Please enter a string: video gamer
Your string in reverse: remag oediv

4. Write a program fibonacci.java that recursively calculates the nth Fibonacci number. Prompt the user which Fibonacci number to calculate. Also, calculate the number of method calls and computer time is used for the calculation.

Example output
Which Fibonacci number would you like to calculate? 42

This Fibonacci number = 267914296
Number of method calls made = 866988873
Seconds used for this calculation = 4.292174803
Extra Credit: Write a more efficient algorithm for calculating Fibonacci numbers. Compare the two.

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

iT404 – 3999

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.

iT404 – 3999

You must submit two separate copies (one Word file and one PDF file) using the Assignment Template on Blackboard via the allocated folder. These files must not be in compressed format.
It is your responsibility to check and make sure that you have uploaded both the correct files.
Zero mark will be given if you try to bypass the SafeAssign (e.g. misspell words, remove spaces between words, hide characters, use different character sets, convert text into image or languages other than English or any kind of manipulation).
Email submission will not be accepted.
You are advised to make your work clear and well-presented. This includes filling your information on the cover page.
You must use this template, failing which will result in zero mark.
You MUST show all your work, and text must not be converted into an image, unless specified otherwise by the question.
Late submission will result in ZERO mark.
The work should be your own, copying from students or other resources will result in ZERO mark.
Use Times New Roman font for all your answers.

Programming Question

1 and 15.2. Open the text notebook: https://github.com/pdeitel/IntroToPython/blob/master/examples/ch15/snippets_ipynb/15_02-03.ipynbLinks to an external site.The notebook contains both self-check questions and the code cells.

Use as a reference, the code cells on another guide page: https://cisjw.sitehost.iu.edu/ai/sklearn-knn.htmlLinks to an external site.The required submission is specified at the bottom of the page: https://cisjw.sitehost.iu.edu/ai/sklearn-knn.html#submissionLinks to an external site.
The code on the page above has been tested.
In one code snippet for visualizing confusion matrix. If the code from the text creates multiple colormap bars, use the code on the guide page instead.

There are three notes on the top of the page above, regarding the script type. For AI/ML, the Jupyter notebook format is preferred. Google Colab provides a cloud platform for working with the notebook. For the coursework, if your local environment not always works right, I highly recommend you use the Colab service. (If you have any problem when using the colab, contact me and I would be happy to help.)
Besides, Kaggle Kernels is a free online platform for creating and running python notebooks too. I mainly use Google Colab and haven’t give it a try. If you are interested in this, you may explore this option. “The Kaggle.comLinks to an external site. is a website that hosts machine learning competitions. It is owned by Google. It provides a service for creating and running Python notebooks online. The service is free to use. The user needs to verify the account to get access to all features (like internet access). The available machine can be with GPU support but for a limited time. User can create private and public notebooks. Public notebooks are great for sharing on Kaggle with other competitors. The notebook user interface is different from the original Jupyter Notebook. The available environment comes with tons of already preinstalled data science packages.
Note: As the wine data and breast cancer data is not of the image type, skip the visualizing the digit sample code.
Please free free to contact me whenever you run into any problem or need additional instructions.

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

it 402 – 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

it 402 – 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

it 402 – 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 405- 5205

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

it 402 – 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

It 402- 9627

All answered must be typed using Times New Roman (size 12, double-spaced) font. No pictures containing text will be accepted and will be considered plagiarism). The Assignment must be submitted in (WORD format only). Use 2 to 4 References and write it in the last page by APA style. I want new words, No plagiarism “Please make it 0% percentage (we want put it the solution with the Cove page🙏)

Upload your .java file(s) for the 3 programs

Program 1 Write a program named randomsum.java that asks the user to enter a number. The program then calculates 4 random numbers that sum up to the user’s number. It should output different (random) numbers each time. Below are some example runs:
Please enter an Integer: 100These numbers sum up to 100: 50, 8, 19, 23Please enter an Integer: 100These numbers sum up to 100: 17, 42, 5, 36Please enter an Integer: 25These numbers sum up to 25: 1, 9, 11, 4Program 2 Create a program named different.java that has 2 overloaded methods named SameDifferent. The first method takes 3 integer parameters, and the second method takes 4 integer parameters.- If all the parameters are the same, the method returns “same”.- Otherwise, if at least half the integers are the same, it returns “similar”.- If all the parameters are different, it returns “different”.Test your methods with this main program:
public class different
{
public static void main (String[] args)
{
System.out.println(“3,1,5 = ” SameDifferent(3,1,5));
System.out.println(“2,0,2 = ” SameDifferent(2,0,2));
System.out.println(“5,5,5 = ” SameDifferent(5,5,5));
System.out.println(“8,9,2,4 = ” SameDifferent(8,9,2,4));
System.out.println(“7,7,1,7 = ” SameDifferent(7,7,1,7));
System.out.println(“4,4,4,4 = ” SameDifferent(4,4,4,4));
}

// create the two SameDifferent methods here
}

Program 3 Using this main program, create a Student class. The class should contain a constructor to take the four variables as parameters. In the main program, calculate and output the average Age and average GPA.public class college
{
public static void main(String[] args)
{
Student S1 = new Student(“Gonzalez”, “Juan”, 19, 3.8);
Student S2 = new Student(“Brown”, “Leanne”, 20, 3.4);
Student S3 = new Student(“Kumar”, “Raj”, 20, 3.5);
Student S4 = new Student(“Tucker”, “Alexa”, 21, 3.9);

// calculate and output average Age and average GPA
}
}

// create class Student here with a constructor to take the 4 parameters

Programming Design Method

To take care of the transfer of a car, what the vehicle owner needs to know is that the process of changing the name of a used or new car is carried out in two stages, namely the management at the Samsat office where the car is registered and where the vehicle owner is located. Both are carried out so that the issuance of STNK and the issuance of BPKB are by new motor vehicle owners. Vehicle owners are advised to seek information regarding the regulations for the transfer of a car’s name at the vehicle owner’s place. Generally, each region has different requirements or ways to change the name of a vehicle, including the cost of changing the name of a used car. Several documents must be entered into the system as required documents.
In general, the documents that must be entered or input are:
1. Resident Identity Card (KTP) of the new vehicle owner and a photocopy.
2. The original and photocopy of the Motor Vehicle Owner’s Book (BPKB).
3. Original and photocopy of Vehicle Number Certificate (STNK).
4. Receipt for the purchase of a used car

PROJECT I: Health Tracker

The system must keep track of conditions that patients have, as well as the medicine prescribed for each condition. The date that a patient was first diagnosed with a particular condition is kept in the Patient_Condition table. A pharmacist is always responsible for handling a prescription to ensure that medicine is prescribed correctly. A prescription is always for one patient,

PROJECT I: Health Tracker

The system must keep track of conditions that patients have, as well as the medicine prescribed for each condition. The date that a patient was first diagnosed with a particular condition is kept in the Patient_Condition table. A pharmacist is always responsible for handling a prescription to ensure that medicine is prescribed correctly. A prescription is always for one patient,