1. Write a program to read 2 numbers. Display the greatest of all.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 11SA
icon
Related questions
Question
JAVA
1. Write a program to read 2 numbers. Display the greatest of all.
2. Write a program to read 'n' numbers from the keyboard and print the sum and average.
3. Write a program to read the student's id, name and marks in 5 courses. Calculate the total and
average. Print all the details.
4. To print your name, college id, name of the college, and department on separate lines.
5. Input temperature in Celsius (c) and convert to Fahrenheit. f 1.8c+32.
6. Input the total marks scored by a student in Java and print "passed" status if the total marks are
greater than 67 otherwise print "failed". Use ternary operator.
Transcribed Image Text:1. Write a program to read 2 numbers. Display the greatest of all. 2. Write a program to read 'n' numbers from the keyboard and print the sum and average. 3. Write a program to read the student's id, name and marks in 5 courses. Calculate the total and average. Print all the details. 4. To print your name, college id, name of the college, and department on separate lines. 5. Input temperature in Celsius (c) and convert to Fahrenheit. f 1.8c+32. 6. Input the total marks scored by a student in Java and print "passed" status if the total marks are greater than 67 otherwise print "failed". Use ternary operator.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Introduction to computer system
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning