Question: Q1) class room practice-activity (class & object, methods) Create a class with the following details: Class name: Book Details variables: bookld, bookName, price, netPrice methods:
Q1) class room practice-activity (class & object, methods) Create a class with the following details: Class name: Book Details variables: bookld, bookName, price, netPrice methods: getData(), calculateTax () and showData() getData method allows to read input from the user. calculateTax () should calculate the tax and netprice on the book price. Netprice=price+tax NOTE: Tax is 0.5 rials Create a method showData() to display the values of the variables. Copy the solution code in notepad and upload in the eLearning. Note: Add a comment in your code with your id and name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
