Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

problem 1: prepare a Java program which computes and prints the simple interest by using the formula:

Simple Interest = PNR / 100

Input values P, N, R should be accepted as command line input as shown below.

ex:  java SimpleInterest  5  10  15

problem 2: prepare a program to find out sum of digits of a given number.

problem 3: The numbers in the given sequence are termed as the Fibonacci numbers.

0, 1, 1, 2, 3, 5, 8, 13,…………..

prepare a program by using do…..while loop to compute and print the first m Fibonacci numbers.

problem 4: prepare a program which converts a decimal number to Roman number. Decimal Number is accepted as command line input at the time of execution.

problem 5: prepare a program which prints prime numbers between 1 to n. Number n must be accepted as command line input.

problem 6: prepare a program to print the given output by using the for loop.

1
2  2
3  3   3
4  4   4   4
5  5   5   5   5

problem 7: prepare a Java program which accepts the radius of a circle and displays the options as follows:

a) Find out the diameter of a circle. (2* radius)
b) Find out the area of circle. (Π * radius * radius)
c) Find out the circumference of a circle. (2 * Π * radius)
d) Exit.

Use case statement to implement each option and display the corresponding output.

problem 8: Define a class called fruit with the given attributes:

a) Name of the fruit.
b) Single fruit or bunch fruit.
c) Price.

Define an appropriate constructor and displayFruit() method which displays values of all the attributes. prepare a program which creates 2 objects of fruit class and display their attributes.

Java, Programming

  • Category:- Java
  • Reference No.:- M93127

Have any Question?


Related Questions in Java

Project descriptionwrite a java program to traverse a

Project Description: Write a java program to traverse a directory structure (DirWalker.java) of csv files that contain csv files with customer info. A simple sample in provided in with the sample code but you MUST will r ...

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Simple order processing systemquestion given the classes

Simple Order Processing System Question: Given the classes Ship (with getter and setter), Speedboat, and SpeedboatTest. Answer the following questions: Refine the whole application (all classes) and create Abstract class ...

Can someone please help me with the following java

can someone please help me with the following java question The input is an N by N matrix of nonnegative integers. Each individual row is a decreasing sequence from left to right. Each individual column is a decreasing s ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

Operating systems assignment -problem 1 sharing the bridgea

Operating Systems Assignment - Problem 1: Sharing the Bridge A new single lane bridge is constructed to connect the North Island of New Zealand to the South Island of New Zealand. Farmers from each island use the bridge ...

Assessment instructionsin this assessment you will complete

Assessment Instructions In this assessment, you will complete the programming of two Java class methods in a console application that registers students for courses in a term of study. The application is written using th ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Assignment - java program using array of objectsobjectives

Assignment - JAVA Program using array of objects Objectives - This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details - For this assignment, you are required to develop a Menu ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As