Skip to content

added assignment 1, 2, 3, 4, 5 (WIP) - #3

Open
khushbu014 wants to merge 7 commits into
gaurav4ever:masterfrom
khushbu014:khushbuGoyal_sgsits
Open

added assignment 1, 2, 3, 4, 5 (WIP)#3
khushbu014 wants to merge 7 commits into
gaurav4ever:masterfrom
khushbu014:khushbuGoyal_sgsits

Conversation

@khushbu014

Copy link
Copy Markdown

Khushbu Goyal (SGSITS Indore) : Added Assignment no. 1 and Assignment no. 2

@abhinav-adtechs abhinav-adtechs added the review pending review pending label Nov 19, 2019
@khushbu014 khushbu014 changed the title added assignment1 and assignment2 added assignment 1, 2 and 3 Nov 19, 2019
Comment thread NucleiAsgn1/src/asgn/CalculateTax.java Outdated
Comment thread NucleiAsgn1/src/asgn/Inventory.java Outdated
package asgn.model;

//Class to describe the properties of item
public class Item {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try lombok plugin.
Lombok removes the extra boiling plate code like getter and setters, Constructors etc.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. I am adding it.

public static ArrayList<Item> getInputItem() {
Scanner sc = new Scanner(System.in);

System.out.println("Enter the following product details:");

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In question it was stated to use command line inputs. Not the scanner.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can take command line input for first input.
But for multiple inputs I will have to use scanner?

Comment thread NucleiAsgn1/src/asgn/util/InputUtil.java Outdated
Comment thread NucleiAsgn2/src/asgn/StudentRecord.java Outdated
Comment thread NucleiAsgn2/src/asgn/StudentRecord.java Outdated
Comment thread NucleiAsgn2/src/asgn/StudentRecord.java Outdated
Comment thread NucleiAsgn2/src/asgn/StudentRecord.java Outdated

private static void performAction(int choice) {
switch (choice) {
case 1:

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use hardcoding


import asgn.model.Node;

public class GraphOperation {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every operation is in same class. Try to segregate the common logic

@gaurav4ever gaurav4ever added review done review done scope for improvement scope for improvement and removed review pending review pending labels Nov 23, 2019
@gaurav4ever

Copy link
Copy Markdown
Owner
  1. Should have used Code Design patterns.
  2. Constant class missing.
  3. Business logic was not segregated.
  4. Business logic used was correct.
  5. Command line inputs were not used.

@khushbu014 khushbu014 changed the title added assignment 1, 2 and 3 added assignment 1, 2, 3 and 4 (WIP) Dec 1, 2019
@khushbu014 khushbu014 changed the title added assignment 1, 2, 3 and 4 (WIP) added assignment 1, 2, 3, 4, 5 (WIP) Dec 19, 2019
@10yogi 10yogi mentioned this pull request Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review done review done scope for improvement scope for improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants