Write java program using class and object concept

Assignment Help JAVA Programming
Reference no: EM132203672

Learning Outcomes:

1. Use different program control statements in a programming language
2. Demonstrate the use of arrays with a programming language
3. Define and work with classes and objects in a programming language.

Q1. Write a java program to automate a retail shop sales operations as mentioned below: To update the stock details of items

In this, to read an Item name (String), Item code (Integer), Item Quantity (Integer),Unit Price(double) of ‘n' number of items using an array concept to insert the stock details. Then use the same array for displaying the details of existing stock inserted as per output screen given below (Fig.1) using a loop.

To make purchase, please ensure the following condition has been evaluated :

To purchase ‘n' number of items, the user must Enter an item code and check with existing stock whether the particular item is available or not, if then, the user should provide the Quantity for purchased items then it should display purchase details with ‘Total Amount' and ‘Grant Total' using any loop and array ,otherwise display "Your item is not available". (Refer Fig.2)

Q2. Write a java program to print following pattern using inner loop concept. 2
1 3

4 6 8

5 7 9 11

10 12 14 16 18

13 15 17 19 21 23

Q3. Write java program using class and object concept to read three marks scored in different modules and credit points of each module. Then perform following calculation to find cgpa and display output as per given screenshot (Fig. 3).

Calculate cgpa as per following condition and formula

If sum of credit points is greater than 20, CGPA=((mark1*credit1)+(mark2*credit2)+(mark3*credit))/(Total of all credits), Otherwise Cgpa is 0.

Verified Expert

The assignment is of Java programming. It have three programs to be created. The assignment demonstrate the concepts of arrays, loops, nested loop, and object oriented programming concepts of creating user defined classes and objects. In program 1, we used arrays and loops to implement the automation of retail sales of a shop.In program 2, we used nested loop to print the desired pattern.In program 3, we used user defined class to calculate the cgpa of a student.

Reference no: EM132203672

Questions Cloud

Symbiotic relationship between strategy and policy : Explain the symbiotic relationship between strategy and policy. Explain the organization's strategic source and type of competitive advantage.
Rubric category points earned description analytical : Midterm Exam/Case Rubric Category Points Earned Description Analytical
How has technology aided inventory management : What are some of the ways in which a company can reduce the need for inventories? How has technology aided inventory management
Expand on the types of communication pitfalls : Expand on the types of communication pitfalls. What are the pitfalls and how do they relate to this scenario?
Write java program using class and object concept : Write a java program to automate a retail shop sales operations - Write java program using class and object concept to read three marks scored
Research the use of biotech in healthcare : Research the use of Biotech in healthcare. Create a brochure about Biotech in healthcare.
Veteran affairs uses for inter-enterprise scope : What is the information system that the Veteran Affairs uses for a inter-enterprise scope?
Identification and explanation of key internal structures : Identification and explanation of the key internal structures (at least 3) that will be designed to enhance the culture within your organization
About the impact of communication on innovation written by : NOKIA, OYJ A Case Study about the Impact of Communication on Innovation Written by:

Reviews

len2203672

12/27/2018 11:10:07 PM

0-5 No real attempt to address the assignment brief or learning outcomes No evidence of knowledge of key principles, classes and objects Insufficient/no use of analytical skills and reflective practice. Weak presentation and structure, grammar and spelling, links to supporting evidence Little evidence of attempts to engage with module materials and learning outcomes Little knowledge of key principles and concepts 6-10 Adequate knowledge of key principles and concepts Some evidence of understanding of basic concepts/issues. Detailed response to all relevant parts of the question with evidence of clear understanding of the issues. 11-17 Good knowledge or key principles and concepts, Good understanding of the issues. Engages directly with the question. Identification and very good understanding of issues in the assessment. Evidence of reading a good range of educational literature

len2203672

12/27/2018 11:10:02 PM

24-30 No evidence of application of theory in practice Content broadly relevant but with limited or little application of theory into practice Adequate evidence of the application of theory in practice of theory Good knowledge of the application of theory in practice Well-structured with evidence of independent application of reading into practice with supporting the argument. Outstanding use of analytical skills and reflective practice demonstrating personal learning. Outstanding knowledge and depth of understanding of principles and concepts and /or outstanding application of theory in practice Evidence of reading into practice through outstanding range of educational literature. Excellent presentation, logically structured, using correct grammar and spelling.

len2203672

12/27/2018 11:09:56 PM

11-17 Good knowledge or key principles and concepts, Good understanding of the issues. Engages directly with the question. Identification and very good understanding of issues in the assessment. Evidence of reading a good range of educational literature Reasonable presentation, completely structured, acceptable grammar and spelling. Generally sound understanding of basic theory and concepts. Content relevant to the question/task. Competently deals with main issues. Detailed identification of the issues with evidence of clear understanding of the issues. 18-23 Excellent use of analytical skills and reflective practice demonstrating personal learning. Excellent knowledge and understanding of principles and concepts. Evidence of reading an excellent range of educational literature. Appropriate referencing and bibliography Good presentation, competently structured, using correct grammar and spelling.

len2203672

12/27/2018 11:09:51 PM

0-5 No real attempt to address the assignment brief or learning outcomes No evidence of knowledge of key principles, classes and objects Insufficient/no use of analytical skills and reflective practice. Weak presentation and structure, grammar and spelling, links to supporting evidence Little evidence of attempts to engage with module materials and learning outcomes Little knowledge of key principles and concepts 6-10 Adequate knowledge of key principles and concepts Some evidence of understanding of basic concepts/issues. Detailed response to all relevant parts of the question with evidence of clear understanding of the issues.

len2203672

12/27/2018 11:09:45 PM

19-21 No evidence of application of theory in practice Content broadly relevant but with limited or little application of theory into practice 22-25 Adequate evidence of the application of theory in practice of theory Good knowledge of the application of theory in practice Well-structured with evidence of independent application of reading into practice with supporting the argument. Outstanding use of analytical skills and reflective practice demonstrating personal learning. 26-35 Each correct test cases one mark

len2203672

12/27/2018 11:09:40 PM

11-15 Good knowledge or key principles and concepts, Good understanding of the issues. Engages directly with the question. Identification and very good understanding of issues in the assessment. Evidence of reading a good range of educational literature Reasonable presentation, completely structured, acceptable grammar and spelling. Generally sound understanding of basic theory and concepts. Content relevant to the question/task. Competently deals with main issues. Detailed identification of the issues with evidence of clear understanding of the issues. 16-18 Excellent use of analytical skills and reflective practice demonstrating personal learning. Excellent knowledge and understanding of principles and concepts. Evidence of reading an excellent range of educational literature. Appropriate referencing and bibliography Good presentation, competently structured, using correct grammar and spelling.

len2203672

12/27/2018 11:09:33 PM

Aspects Range Task Grading Criteria Implementati on of loops and Array 0-5 No real attempt to address the assignment brief or learning outcomes No evidence of knowledge of key principles, classes and objects Insufficient/no use of analytical skills and reflective practice. Weak presentation and structure, grammar and spelling, links to supporting evidence Little evidence of attempts to engage with module materials and learning outcomes Little knowledge of key principles and concepts 6-10 Adequate knowledge of key principles and concepts Some evidence of understanding of basic concepts/issues. Detailed response to all relevant parts of the question with evidence of clear understanding of the issues.

len2203672

12/27/2018 11:09:27 PM

Deliverables Aspects Mark Range: 0-4 Mark 1.1 Proposal Submission • What you will do with the given tasks and the dates by when they will be completed 2 • General overview of initial understanding of solutions to all the tasks 6 • Identification of Literature Resources 2

len2203672

12/27/2018 11:09:11 PM

You need to submit a work proposal for this assignment in the form of a completed Word document on Moodle. You need to upload a final soft copy of your assignment in a word file before the date/time indicated at the Assignment Submission area in Moodle only. Be careful about plagiarism! Refer to the Amended MEC policy on plagiarism in MIG and Student Handbook.

len2203672

12/27/2018 11:09:02 PM

You would be evaluated on the following: • Originality of answer, i.e. writing your own programs • WRITTEN VIVA: Your Assignment marks are based on the WRITTEN VIVA which will be conducted upon submission of assignment during week 14. The WRITTEN VIVA will be based on the tasks given in the assignment. ZERO marks will be awarded to the student if she/he is absent for VIVA. • Proper analysis of given problem, adequate covering of intended learning outcomes and presenting the answers in good, documented form. • Adequate referencing has been done, following CU Harvard style of referencing.

len2203672

12/27/2018 11:08:50 PM

Evaluation Guidelines: The evaluation will be done on the strength of analysis presented in the proposal. You need to submit a work proposal for this assignment in the form of a completed Word document on Moodle before Wednesday, which must include: • What you will do with the given tasks and the dates by when they will be completed • General overview of initial understanding of solutions to all the tasks • Identification of Literature Resources

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd