Internal Assessment for Theory and Practical - Java Program to Calculate the Factorial - Engineering Assignment Help

Download Solution Order New Solution
Assignment Task :

1. Write a Java program to calculate the factorial for a number. Use a while loop to perform the calculation.
2. Develop code to convert a numeric day to a named day of the week (1=Sunday, 2=Monday, etc.). Write code that will take an int variable named day and print the corresponding named day to the standard output. Use a switch statement.
3. Given the following detailed description, identify the objects, data members, and operations that can be used to solve the problem. “Write a program to input the radius of a circle and calculate and print the diameter, circumference, and area of the circle.”
4. Create a class with a single method that will find the minimum value in a one-dimensional array. The method should return the value once it has processed the array. The main method of your class should declare and initialize a one-dimensional array, call the min method, and print out the minimum value.
5. Write a Java program that takes a few strings using command line arguments and displays the initial character of each string.
6. Create a Java class containing a recursive method that calculates the result of raising an int to an int power. For example, 2 to the 3rd is 8. The class should contain the pow function that takes two int parameters - the number and the exponent, and returns the number raised to the exponent power. The class should also include a main method that calls the pow method and prints the results.
7. Implement Bubble Sort algorithm using Java. Write a class Bubblesort having methods – swap, sort, print etc.
8. Create a class Account that stores the customer name, account number ant type of account. From this derive the classes Curr_acc and Sav_acc to make them more specific. Include the necessary methods to accept deposit, allow withdrawal, compute interest, display balance etc.
9. Write a java program to show usage of exceptions like Arithmetic Exception, Array Index Out Of Bound Exception, Number Format Exception.
10. Write an applet to draw square inside a circle and circle inside a square

 

This Engineering Assignment has been solved by our Engineering Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.

Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.

Get It Done! Today

Country
Applicable Time Zone is AEST [Sydney, NSW] (GMT+11)
+

Every Assignment. Every Solution. Instantly. Deadline Ahead? Grab Your Sample Now.