Computer Science > Lab Report > LAB ASSIGNMENT-2 PROGRAMMING IN JAVA VIT UniversityCOMPUTER SCIENCE 100118BCA0032Jab-2 (All)
LAB ASSIGNMENT-2 PROGRAMMING IN JAVA NAME: SARANKUMAR.B REG NO: 18BCA0032 COURESE CODE: ITA3006 1. Create a class Product with member variables productID, productName, Price, Quantity and dateo... fPurchase. Have a parameterized constructor to initialize the productID, productName, dateofPurchase, Price and Quantity. i. Have a static method to calculate the total price of product purchased by the customer. Verify the following a. Check the customers billl amount is Rs. 2000 on his/her purchase offer discount of 5% b. The total amount reaches Rs. 5000 by the customer offer discount 49% c. The customer buys 50% offer based product, there is no further discount. In the testClass create object of Product class and input necessary details and display the information. //Program: import java.util.Scanner; class Product{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); [Show More]
Last updated: 1 year ago
Preview 1 out of 18 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Add to cartInstant download
We Accept:
Connected school, study & course
About the document
Uploaded On
Aug 23, 2022
Number of pages
18
Written in
This document has been written for:
Uploaded
Aug 23, 2022
Downloads
0
Views
94
In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Browsegrades · High quality services·