Skip to content

VijaysCoding/Vijaykumar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Full Stack Developer – Screening Test Solutions

Author: Vijay Kumar
Language Used: Java

How to Run the Programs

Prerequisites

  • Java JDK 8 or above must be installed
  • Any Java IDE (VS Code, IntelliJ, Eclipse) OR command line

Problem Descriptions & Solutions


Problem-1: Mini Calculator using Class

A simple calculator that performs:

  • Addition
  • Subtraction
  • Multiplication
  • Division

Inputs:

  • a = double
  • b = double
  • operation = String

File: Problem-1.java


Problem-2: Generate odd number series up to n terms

Example:

  • Input: 4
  • Output: 1, 3, 5, 7

File: Problem-2.java


Problem-3: Generate odd number series up to nearest previous odd

Examples:

  • a = 4 → output: 1, 3, 5
  • a = 5 → output: 1, 3, 5
  • a = 6 → output: 1, 3, 5

File: Problem-3.java


Problem-4: Count multiples of 1–9 in a list

Example input: [1, 2, 8, 9, 12, 46, 76, 82, 15, 20, 30]

Output: {1: 11, 2: 8, 3: 4, 4: 4, 5: 3, 6: 2, 7: 0, 8: 1, 9: 1}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages