JAVA Mini Project

Duration: 10 min

This video lesson is available to enrolled students.

Return to /learn/TCS-NQT-PREPARATION/advanced-coding/java-/java-programming-by-yash/asset-java-mini-project after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. TCS One Shot Free Videos & Notes: TCS Preparation
  2. Numerical Ability (Foundation Section): Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Mixture and Alligation, Permutation and Combination, Logarithm, Number System, HCF LCM, Sequence and Series (Series), Speed Time and Distance, Percentage, Average, Powers and Exponents (Surds and Indices), Algebra, Probability, Profit and Loss, Simple Interest and Compound Interest, Time and Work, Pipe and Cistern, Mensuration and Geometry, Mental Ability, Age Problems, Statistics, Arithmetic, Partnership, Speed Mathematics and Basic Mathematics
  3. Reasoning Ability (Foundation Section): Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Syllogisms, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Seating Arrangements, Blood Relations, Directions (Direction Test), Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Calendar, Clock, Cubes & Dices, Selection Decision Table (Decision Making), Crypt Arithmetic, Venn Diagram, Data Arrangement, Inequality, Analogy, Ranking, Order and Sequence, Logical Sequence Of Words
  4. New Pattern-Verbal Ability (Foundation Section): Sentence Completion (Fill in the blanks), English Writing Ability
  5. Old Pattern-Verbal Ability (Foundation Section): Vocabulary, Noun, Subject Verb Agreement (Verb Noun Agreement), Adjectives, Tenses, Pronoun, Preposition, Articles, Direct and Indirect Speech, Conjunction, Modals, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Sentence Correction (Error Correction), Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Verbal Analogy (Word Based Analogy), Active Passive Voice (Voice), Determiner, Facts, Inference and Judgements, Adverb, Cloze Test (Cloze Passage), Sentence Construction, Verb
  6. Advanced Quantitative Ability: TCS NQT Advanced Quantitative Ability
  7. Advanced Reasoning Ability: TCS NQT Advanced Reasoning Ability
  8. Advanced Coding: Coding Questions by Yash Sir, C Programming by Yash Sir, Python for Placements by Yash Sir, DSA using Python, Object Oriented Programming (OOPS), Programming in C++, Java
  9. TCS Full Length Mock Test:
  10. TCS Interview & Resume Prep: MR & HR Interview Preparation, TCS Interview Preparation, Mock Interview, Interview Recordings, Resume Preparation, Resume Review
  11. Mega Test:
  12. Grand Test:
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This video is a comprehensive tutorial on creating a Java calculator program. It begins with a PowerPoint presentation introducing the project, which involves taking two numbers as input and performing one of four operations: addition, subtraction, multiplication, or division, based on user choice. The tutorial then transitions to a code editor, where the instructor demonstrates the implementation. The core of the program uses the `Scanner` class to read user input for two floating-point numbers and an integer for the operation. A `switch` statement is used to handle the different arithmetic operations, with `case 1` for addition, `case 2` for subtraction, `case 3` for multiplication, and `case 4` for division. The program includes a `default` case to handle invalid inputs. The instructor also provides a key instruction to use `float` data types for all values to ensure accurate decimal arithmetic. The video concludes by showing the program's output in a console, demonstrating the results of each operation.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The video starts with a PowerPoint presentation titled 'JAVA CALCULATOR PROJECT'. The slide shows the Java logo and a calculator icon. The instructor, visible in a small window, introduces the project. The presentation then shows a console output example where the user enters two numbers, 20 and 4, and the program performs addition, resulting in 24.0. The instructor explains that the program will take two numbers and an operation choice from the user.

  2. 2:00 – 5:00 02:00-05:00

    The video continues with the console output, showing the results of subtraction (16.0), multiplication (80.0), and division (5.0). The instructor then demonstrates an invalid input, where the user enters 6, resulting in 'Invalid Input'. A text box appears with the instruction: 'Take all input values as float and return all output values as float'. The instructor explains that this is a key requirement for the project to handle decimal numbers correctly.

  3. 5:00 – 10:00 05:00-10:00

    The view switches to a code editor, showing the Java code for the calculator. The instructor explains the code line by line. The program starts by importing `java.util.Scanner` and declaring two `float` variables, `num1` and `num2`. It then uses a `Scanner` object to read the first and second numbers from the user. The code prints the entered numbers and prompts the user to enter a number for the operation (1 for addition, 2 for subtraction, etc.). The core logic is a `switch` statement that uses the user's choice to perform the corresponding arithmetic operation and print the result. The `default` case handles invalid inputs by printing 'Invalid Input'. The instructor emphasizes the use of `float` for all variables to ensure precision.

The video provides a complete, step-by-step guide to building a Java calculator. It effectively combines a high-level overview with a detailed, line-by-line code walkthrough. The instructor first establishes the project's goal and expected behavior through a console output example. The core of the lesson is the implementation of the `switch` statement, which is a fundamental control structure for handling multiple choices. The emphasis on using `float` data types is a crucial technical detail that ensures the program can handle real numbers accurately, which is a key learning point for students. The progression from the conceptual slide to the practical code implementation makes the tutorial highly effective for learning basic Java programming concepts.

Loading lesson…