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

  Write a statement that prints the number of characters

Write a statement that prints the number of characters in a String object called myString. Write statements to prompt for and read user's age using Scanner variable

  Create the physical process model

You were hired as an analyst to develop a new information system to automate the payroll transactions in a mid-size organization. The proposed system will contain employees' data and interface with the organization's General Ledger system (GL).

  Associative memory device

1. How can the associative memory device needed for a TLB be implemented in hardware, and what are the implications of such a design for expandability?

  Write a java application that calculates and displays

The application should ask the user to enter the name of the property owner and the assessed value of the property for each owner (total N owners) and calculate the property tax.

  Write a java sorting application with two classes

Problem. Write a Java Sorting Application with two classes, JavaSort and JavaSortTest. Your JavaSort Class, as a minimum must contain sorting methods for BubbleSort, InsertionSort, ShellSort, MergeSort, and QuickSort.

  Java program that implements an algorithm known as a bubble

writing a simple Java program that implements an algorithm known as a Bubble Sort. A Bubble Sort is a simple sorting algorithm that takes an unsorted array of elements and sorts them into ascending order.

  Create a class for services offered by a hair-styling salon

Create a class for services offered by a hair-styling salon. Data fields include a String to hold the service description and write an application named Salon Report that contains an array to hold six Service objects and fill it with the data

  Write a method called gymnasticsjudging

Write a method calledGymnasticsJudgingthat takes no parameters and it returns one value - the method returns the average value.

  Create the program which converts fahrenheit to celsius

Create the following program which converts Fahrenheit to Celsius. Read integer Fahrenheit temperatures from the user.

  Write a program in java for bank system

Write a program in java for Bank System - create an instance for the customer using their name and an account number of your choice.

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  Write a driver class

Determine whether the year is divisible by 100. If it is, then it is a leap year if and if only it is divisible by 400. For example, 2000 is a leap year but 210

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