Oops.pdf Journal Assignment of OOP and Data Structure

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Summary

This document appears to be a programming assignment related to object-oriented programming (OOP) and data structures. It contains code examples for Java/C++ and likely involves calculating charges and managing bank accounts, along with questions related to these concepts.

Full Transcript

Dungrani Het SYBCA-A(79) Journal Assignment of OOP and Data Structure 1. An electricity board charges the following rates to user. For the first 100 units → 60p per unit. For the next 200 units→80p per unit. Beyond 300 units→90p per unit. All users are charged a minimum of R...

Dungrani Het SYBCA-A(79) Journal Assignment of OOP and Data Structure 1. An electricity board charges the following rates to user. For the first 100 units → 60p per unit. For the next 200 units→80p per unit. Beyond 300 units→90p per unit. All users are charged a minimum of Rs. 50; if the total amount is more than 300 then an additional surcharges of 15% is added. Write a program to accept name of user consumed and print charges with the its rates. CODE: #include using namespace std; float calculateCharges(int units) { float charges = 0; if (units name; cout

Use Quizgecko on...
Browser
Browser