GithubHelp home page GithubHelp logo

riaarun25 / problemsolvingandoop Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 16 KB

A repository to maintain Problem Solving and Object Oriented Programming in C++ (CSE1002) assignments and practice questions

C++ 100.00%

problemsolvingandoop's Introduction

Problem Solving and Object Oriented Programming

Please find the questions solved below:

bankacc.cpp

A software application is developed for a bank. As per the bank rule, to open an account the customer should deposit a minimum of Rs.1000. But it is the desire of the customer to deposit even more. When account is created, name and account number are passed in addition to the minimum deposit made by the customer. A function to create account shall be written in two ways with two arguments or three arguments

basketballteam.cpp

A college has ‘n’ basketball players. A 5-member team and a captain has to be selected for each team out of these ‘n’ players. How many different selections can be made?

damagednotes.cpp

You have a shop of collecting damaged rupee notes (Assume the denominations to be two rupees, five rupees and ten rupees) from the customers. You have to return the money to customer by cutting(commission)of 1 rupee for each note. Write a default function to get the input from customer and calculate the how much money should return to customer.

electronicshop.cpp

A electronic shop has given the offer during pongal festival of 3% on every item purchase. The prices of the electronic items are Hp laptop is Rs. 35000/-, HP laptop charger is Rs. 1500/-, Hp head set is Rs. 250/-, HP hard disk 1TB is 4000/- and HP pendrive 16GB is 800/-. Write a default function to calculate the total bill amount to pay for purchase in electronic shop.

gardening.cpp

A farmer does drip irrigation in his field. On a fine day, he plants ‘p’ plants and sows ‘s’ seeds in the field. The seeds are so special that they grow into plants two days. The farmer sows ‘s’ seed every alternate day. Given the number of plants he planted on the first day, the number of seeds he sows every alternate day and the value of ‘n’, write a C++ program to find the number of plants that would be in his field on nth day.

policecamp.cpp

A police camp is recruiting the trainees by measuring the parameters such as height, age and chest. The selection based on the following conditions:

  • Height should be between 5.2 to 5.6 inches
  • Age should be greater than 18 and less than 25
  • Chest should be greater than 45 cm

Write a inline function to find whether the person is fit to the police or not.

salaryinc.cpp

A company has taken a decision to increase salary of the employee as follows:

  • If the total experience is more than 15 years then 10% hike to the existing salary.
  • Otherwise 5% hike to the existing salary.

Write a program to display the revised January month salary of the employee using inline function.

timeprob.cpp

In a online examination system, each test will be scheduled for ‘x’ minutes. The student is free to take up the test on his convenience but once he starts the test, he must complete. Given the start time and the value of ‘x’ for an examination, develop an algorithm and write a C++ code for the examination system to calculate the finish time of the test.

tractorrental.cpp

A tractor rental shop has three plans. In the first plan, you can rent the tractor Rs. 100 per hours. In second plan, you can rent the tractor Rs.500 for the first 6 hours and Rs.90 per extra hour. In third plan Rs 1000 for the first 12 hours and Rs.80 per extra hour. Write a inline function to suggest the best plan to the farmer customer based on the given the number of hours to use the tractor in their garden.

problemsolvingandoop's People

Contributors

riaarun25 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.