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

  What is a reserved word in java programming language

What is a reserved word in Java programming language? Method,native,subclasses,reference,array?

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

  Design and implement an application that plays a game

Design and implement an application that plays a game called Catch-the-Creature. Use an image to represent the creature (any image you can search online).

  Dangerousmonster which inherits the monster

An interface - DangerousMonster which inherits the Monster interface and has a method called destroy() with void return type.(Note: Just like a class can inherit from another class, an interface can inherit from another interface using the "extends..

  Output the number of vowels

Prompt the user to enter a string, and using a loop, count and output the number of vowels, and consonants the string contains. (You have to find methods from class.)

  What were the percentages in population growth

What were the percentages in population growth for each consecutive year from 1994 - 2013? 2. What year was the Murder rate the highest

  Create an object-oriented and menu-driven java program

300581: Programming Techniques - be object-oriented utilising the classes described in section B (iv) as a minimum. Other classes may also be needed to solve

  Start a new project and package

Write your own name and that of your programming partner on the top of page. Start a new project and package called PA3 and set up your programs inside.

  Loops-for loop, while loop, and do while loop

There are 3 kinds of loops-for loop, while loop, and do while loop. Under which circumstances would each kind of loop be more appropriate

  Write a class that reads a file

In java, write a class that reads a file and outputs a list of the unique words in the file and the number of times each unique word occurs.Hint: use a HashMap with keys being the words and values being integer counts associated with the words.

  Object-oriented gui drawing editor

A simple object-oriented GUI drawing editor that allows a user to create, move and erase rectangles, squares, circles and lines in an interactive graphics. How can I draw move erase rectangles, squares, circles and lines in GUI/java.

  Define an enum type in the librarybook class

Define a class variable, totalTVs, whose purpose is to keep track of the total number of Television objects constructed during execution of a program that uses the Television class - Define an enum type in the LibraryBook class corresponding to the..

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