Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 2.28 KB

Practice_Exercise.md

File metadata and controls

35 lines (30 loc) · 2.28 KB

20CYS383 Java Programming Lab


Lab 1 - 20th March 2023

Instructions

  • The programs should be within the package com.amrita.<>
  • All the Exercises should be delivered as executable JAR file after testing. FileName of JAR should be ROLLNUMBER_DATE_EXNAME.JAR

Exercises

  • Create a simple calculator which takes two numbers as input and third input selecting the operation (addition, subtraction, multiplication and division). Handle all the negative usecases and print appropriate error messages.
  • Create a program to print the below
* * * * * * ==================================                          
* * * * *  ===================================                         
* * * * * * ==================================                          
* * * * *  ===================================                         
* * * * * * ==================================                          
* * * * * ====================================                          
* * * * * * ==================================                          
* * * * *  ===================================                          
* * * * * * ==================================                          
==============================================                          
==============================================                          
==============================================                          
==============================================                          
==============================================                          
==============================================
  • Create a simple convertor for decimal to binary and hexadecimal. For a given input in decimal, the output should be binary and hexadecimal. Note: Only Integrer input accepted. Handle all negative usecases and print appropriate error messages.