Program that prompts the user to enter values

Assignment Help JAVA Programming
Reference no: EM131591029

1. do you know the quadratic equation where the roots =( -b +- square root of b squared - 4 * a * c) / (2a) b squared - 4ac is called the discriminant of the equation. if it is positive, the equation has two real roots, If it is zero, the equation has one root. If it is negative, the equation has NO real roots. write a program that prompts the user to enter values for a, b, and c and displays the result based on thediscriminant. If the discriminant is is positive, display two roots. If the discriminant is 0, display one root, otherwise, display "The equation has no real roots".

2. Write a program that prompts the user to enter the month and year and displays the number of days in the month. For example, if the user entered month 2 and year 2012, the program should display February 2012 had 29 days. if the user entered month 3 and year 2015, the program should display that March 2015 has 31 days.

3. write a program that prompts the user to enter an integer and checks whether the number is divisible by 5 and 6 , or neither of them, or just one of them. Here are some sample runs for inputs, 10, 30, 23. output 10 is divisible by 5 or 6 30 is divisible by 5 and 6 23 is NOT divisible by 5 or 6.

Reference no: EM131591029

Questions Cloud

Write a two pages paper about communication : Write a 2 pages paper about communication, double-spaced, size 12. Arrange and take a visit to an organization in which communication is managed.
What are some of the challenges faced by the researchers : What are some of the challenges faced by the researchers in this study. How did they address them. Were they successful
Analyze the term risk appetite : Imagine that a software development company has just appointed you to lead a risk assessment project. The Chief Information Officer (CIO) of the organization.
Determine the strength of an electromagnet : Describe the difference between a potentiometer and a Rheostat. State 4 factors that determine the strength of an electromagnet.a
Program that prompts the user to enter values : write a program that prompts the user to enter an integer and checks whether the number is divisible by 5 and 6 , or neither of them, or just one of them
Why would an organization create such a policy or practice : Why would an organization create such a policy or practice? Why might this policy or practice be harmful to employees?
How much and what kind of a difference has the program : Assessing attainment of objectives: How well has the program or initiative met its stated objectives
Write a script introduce toast present an award : Write a script introduce, toast, present an award, nominate, accept, give a keynote address, celebrate commencement, commemorate or give tribute.
An inventory search of seized automobiles would be typically : Devices that enhance the senses but are not generally considered a search include

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