Reference no: EM132161926
Objective:
The aim of this assignment is to the test student's ability to use control structures, arrays and work with classes and objects to solve specific problems using a programming language.
Learning Outcomes Covered:
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 attached (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". (attached 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
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 (attached 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.
2. Guidelines
a.) Type 1: In case plagiarism is detected in any component or part submission (submitted at different times) of one assessment (assignment), the deduction in marks will be applicable for the whole assessment (assignment), even if only the component or part submission alone needs to be resubmitted.
b.) Type 2: In case plagiarism is detected in a group assessment, all students of the group will be considered as having committed an act of plagiarism irrespective of whether plagiarism is on account of the act of all or a few or only one member. The policy will then be applied to all students.
c.) Type 3: Combination of Type 1 and Type 2: In case plagiarism is detected in any component or part submission (submitted at different times) of a group assessment (assignment), the deduction in marks will be applicable for the whole assessment (assignment), even if only the component or part submission alone needs to be resubmitted. All students of the group would be considered as having committed an act of plagiarism irrespective of whether plagiarism is on account of the act of all or a few or only one member. The policy will then be applied to all the students of the group.
d.) Type 4: Variation of Type 1 and Type 2: In cases where the assessment consists of components or part submissions that could be a group assessment component (e.g. group assignment) and an individual assessment component (e.g. individual reflection), the following will be applicable:
1. If plagiarism is detected in the group assessment component, all students of the group will be considered as having committed an act of plagiarism, irrespective of whether plagiarism is on account of the act of all or a few or only one member. The policy will then be applied to all students of the group. In such cases the group assessment component will be resubmitted as per the policy.
2. If plagiarism is detected in the individual assessment component, the individual assessment component will be resubmitted as per the policy. The policy will then be applied to that student alone.
3. In both cases (a) and/or (b), the deduction in marks will be applicable for the whole assessment (assignment).
D. Amount of similar material
a.) The total amount of similar material in any form of student work from all sources put together should not exceed 30% (including direct quotations).
b.) The total amount of quoted material (direct quotations) in any form of student work from all sources put together should not exceed 10%.
c.) The total amount of similar material in any form of student work from a single source should not exceed 7 percent. However, cases having a similarity of less than 7 percent in such cases may still be investigated by the faculty depending on the seriousness of the case.
d.) If faculty member find enough merit in the case of a student work with a similarity (with a single source) of more than 7 percent as not a case of plagiarism, the faculty member should provide detailed comments/remarks to justify the case.
Research Ethics and Biosafety Policy
To protect and respect the rights, dignity, health, safety, and privacy of research subjects involved including the welfare of animals and the integrity of environment, all student projects are expected to be undertaken as per the MEC Research Ethics and Biosafety Policy. Accordingly the following shall apply.
- Research and other enterprise activities shall be conducted by maintaining the high ethical standards consistent with national and international standards and conventions.
- Any research at MEC that is categorized as high-risk research shall be subject to review and approval by the Research Ethics and Biosafety Committee.
- Research activities involving collection of human or animal tissues and manipulation of microbial, animal or plant cells shall be subject to review and approval by the Research Ethics and Biosafety Committee.
- Participants involved in research must be informed about the purpose of research and intended uses of research findings. Written consent must be obtained from people involved prior to the commencement of research.
- Data obtained from participants must be treated with high confidence and should be used only for the intended purpose of research.
- Research supervisors must take necessary steps to ensure research integrity and quality of their students' research.
Attachment:- ITP Assignment.rar