Write a program that will read a float type value

Assignment Help JAVA Programming
Reference no: EM132024775

Question: Java Programs

Program 1: Find Maximum of 2 nos.

Program 2: Find Minimum of 2 nos. using conditional operator

Program 3: Write a program that will read a float type value from the keyboard and print the following output.

->Small Integer not less than the number.

->Given Number.

->Largest Integer not greater than the number.

Program 4: Write a program to generate 5 Random nos. between 1 to 100, and it should not follow with decimal point.

Program 5: Write a program to display a greet message according to Marks obtained by student.

Program 6: Write a program to find SUM AND PRODUCT of a given Digit.

Program 7: Write a program to Find Factorial of Given no.

Program 8: Write a program to Reverse a given no.

Program 9: Write a program to find Fibonacci series of a given no.

Example: Input - 8

Output - 1 1 2 3 5 8 13 21

Program 10
Write a program to find sum of all integers greater than 100 and less than 200 that are divisible by 7

Program 11: Write a program to Concatenate string using for Loop

Example: Input - 5

Output - 1 2 3 4 5

Program 12: Program to Display Multiplication Table

Program 13: Write a program to Swap the values

Program 14: Write a program to convert given no. of days into months and days. (Assume that each month is of 30 days)

Example: Input - 69

Output - 69 days = 2 Month and 9 days

Program 15: Write a program to generate a Triangle. eg:

1

2 2

3 3 3

4 4 4 4 and so on as per user given number

Program 16: Write a program to Display Invert Triangle.

Example: Input - 5

Output :

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

Program 17: Write a program to find whether given no. is Armstrong or not.

Example: Input - 153

Output - 1^3 + 5^3 + 3^3 = 153, so it is Armstrong no.

Program 18: Write a program to Find whether number is Prime or Not.

Program 19: Write a program to find whether no. is palindrome or not.

Example: Input - 12521 is a palindrome no.

Input - 12345 is not a palindrome no.

Program 20: Write a program to generate a below out put.

Example: Input - 5

Output :

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

Program 21: Write a program to generate a below out put.

Example: Input - 3

Output :

1
2 2 2
3 3 3 3 3

Program 22: Write a program to generate a below out put.

Example: Input - 5

Output :

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

Program 23: Write a program to generate a below out put.

Example: Input - 3

Output :

1
1 2 1
1 2 3 2 1
1 2 1
1

Program 24: Switch case demo

Example: Input - 124

Output - One Two Four

Program 25: Write a program to generate Harmonic Series.

Example: Input - 5
Output - 1 + 1/2 + 1/3 + 1/4 + 1/5 = 2.28 (Approximately)

Program 26
Write a program to find average of consecutive N Odd no. and Even no.

Program 27: Display Triangle as follow: BREAK DEMO.

1
2 3
4 5 6
7 8 9 10 ... N

Program 28: Display Triangle as follow

0
1 0
1 0 1
0 1 0 1

Program 29: Display Triangle as follow

1
2 4
3 6 9
4 8 12 16 ... N (indicates no. of Rows)

Program 30: Write a program to convert given Decimal number to Binary, Octal and Hexa decimal number and display all the values.

Example:

Input - 17

Output -

Binary - 10001

Octal - 21

Decimal - 17

Hexa Decimal - 11

Reference no: EM132024775

Questions Cloud

Relatively inefficient vertical drill machine : The Wu Lighting Company is considering replacing an old, relatively inefficient vertical drill machine that was purchased 7 years ago at a cost of $11,000.
What is the difference in present worth : What is the DIFFERENCE IN PRESENT WORTH between the two alternatives at an interest rate of 14%?
The correlation coefficient between the two stocks : The portfolio contains 40% of stock A, and the correlation coefficient between the two stocks is -.23.
Monica reading comprehension score : Luckily Lucy has taken this course and knows that z-scores will help her understand Monica's reading score in relation to the population.
Write a program that will read a float type value : Find Minimum of 2 nos. using conditional operator. Write a program that will read a float type value from the keyboard and print the following output.
Highway drivers must pay a fee : Suppose that to use the highway drivers must pay a fee. Each car must pay a basic fee of $3, plus an additional $0.25 for every km/h over the speed limit
How many students have scores between 25 and 45 : A frequency curve is constructed from the test scores of 200 students. Sixty percent of the total area under the curve falls between test scores of 25 and 45.
Results by the prevalence in the population : Are all good samples random? This is an opportunity to bring up opinion polling, which typically tries to obtain views from particular groups and then "weights"
What is the companies overarching goal : What are some tools and resources you would suggest the company use to evaluate and measure its effectiveness?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd