1. Write a Java program to determine the answers to the following:           a. The squre of 30           b. The sine and cosine of 100           c. The value of the floor, ceiling and round of 44.7           d. The larger and smaller of the character K and integer 70

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter1: An Overview Of Computers And Programming
Section: Chapter Questions
Problem 10RQ
icon
Related questions
icon
Concept explainers
Question

Lesson 7: Using Prewritten Classes and Methods – JavaProgramming

 

1. Write a Java program to determine the answers to the following:

          a. The squre of 30

          b. The sine and cosine of 100

          c. The value of the floor, ceiling and round of 44.7

          d. The larger and smaller of the character K and integer 70

 

2.Write a program to calculate how many days it is from today until the current year

3. Write a program to determine how many days it is from today until your next birthday

4. Write a program that displays the current date in this format

           Today is August 1, 2003

            It is the 1st day of August

            Today is Friday

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage