mnomanme / basicJava

A basic Java problem. Like if-else, switch-case and for, while, do-while, conditional loop.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Java Basic Problem

Question

    1. Write a program to check if inputted letter is small or capital
    1. Write a program to calculate GPA and find grade
    1. Input 2 decimal numbers and check if they are both same or different up to two decimal places. E.g 120.546 & 120.241
    1. Write a program to check balance and withdraw money from ATM booth using if else or switch case
    1. Write a program to sum of numbers which only divisible by 5 from 1 to 100
    1. Write a program to find the factorial of a given number
    1. Write a program to print prime numbers from 2 to n
    1. Write a program to generate 2 random numbers which will not be shown to the user. Take a user input and match it with any of the random numbers. If correct give it 1 point and if incorrect, do not give it any point. Finally, repeat this for 10 times and count the point user achieved.
    1. Write a program to sum of user input until users input ‘q’ from keyboard
    1. Write a program to enter the numbers till the user wants and at the end, the program should display the largest and smallest numbers user entered.

Solved

    1. FindLetter
    1. FindGrade
    1. DecimalNumbers
    1. BoothCollection
    1. SumOfNumbers
    1. FactorialNumbers
    1. PrimeNumbers
    1. RandomNumbers
    1. UserInput
    1. LargeOrSmall

About

A basic Java problem. Like if-else, switch-case and for, while, do-while, conditional loop.

License:MIT License


Languages

Language:Java 100.0%