Problem Statement
Create an online-order subclass that extends a base order and prints the grand total.
DEMO-OOP-33 โข Object Oriented Programming
Create an online-order subclass that extends a base order and prints the grand total.
Input is given as whitespace-separated tokens for the base-class fields first, followed by the child-class fields.
Print the exact multiline report required by the problem.
Submit runs every public testcase in this browser. Results and code never leave this device.
O10 20.0 3.0
Order: O10 Items: 20.00 Grand Total: 23.00
O20 50.5 5.5
Order: O20 Items: 50.50 Grand Total: 56.00
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question