Happy Programming!

Hello there! This blog contains the easy to understand examples for Programming languages. Complexity of the concepts may be blurred away if it is understood properly with proper examples. So, Happy Programming!

Pages

  • Home
  • conm_home
  • cn_home
  • oocp_home
  • java_home

UNIT2

C++ BASICS


1. Write a program to show use of manipulators.

2. Program for Use of Scope Resolution Operator (::).

3. Write a program to evaluate the following investment equation V = P(1+r)n.

4. An electricity board charges the following rates to domestic users to domestic users to discharge large consumption of energy.
For the first 100 units – 60 P per unit
For next 200 units - 80P per unit
Beyond 300 units - 90 P per Unit
All users are charged a minimum of Rs.50.00. If the total amount is more than Rs. 300.00 then an additional surcharge of 15% is added. Write a program to read the names of users and number of units consumed and print out the charges with names.

5. Program for Analysis of mark sheet using else if ladder.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Home

LinkedIn

Dhruv Dabhi

Labels

  • Unit 1 (5)
  • Unit 2 (5)
  • Unit 3 (8)
  • Unit 4 (7)
  • Unit 5 (6)
  • Unit 6 (5)
  • Unit 7 (2)
  • Unit 8 (1)

Blog Archive

  • ▼  2015 (69)
    • ▼  September (6)
      • S9P2
      • S9P1
      • S8P2
      • S8P1
      • S6P3
      • S7P2
    • ►  August (15)
    • ►  July (1)
    • ►  May (6)
    • ►  April (22)
    • ►  March (1)
    • ►  February (18)

Popular Posts

  • S5P1
    Write a program which defines base class Employee having three data members, namely name[30], emp_numb and gender and two methods namely i...
  • S5P2
    WAP that illustrates method overriding. Class A3 is extended by Class B3. Each of these classes defines a hello(string s) method that outpu...
  • S7P1
    WAP using try catch block. User should enter two command line arguments. If only one argument is entered then exception should be caught. ...
  • S6P2
    Create an interface Shape2D which declares a getArea() method. Point 3D contains coordinates of a point. The abstract class Shape declares...
  • S4P1
    Write a program that illustrates interface inheritance. Interface P is extended by P1 And P2. Interface P12 inherits from both P1 and P2.E...
  • S3P3
    It is required to compute SPI (semester performance index) of n students of your college for their registered subjects in a semester. Decl...
  • S6P3
    Create a package “employee” and define a Class Employee having three data members, name, emp_num, and gender and two methods- input_data an...
  • S1P3
    Write a program to print the Fibonacci series. class S1P3_fibonaci { public static void main(String args[]) { ...
  • U5P4
    Assume that circle is defined using radius and cylinder is defined using radius and height. Write a circle class as base class and inherit ...
  • S6P1
    Write an abstract class shape, which defines abstract method area. Derive class circle from shape. It has data member radius and implementa...
plus.google.com/+DhruvDabhi123. Travel theme. Theme images by Goldmund. Powered by Blogger.