User Profile

Collapse

Profile Sidebar

Collapse
ganeshforall
ganeshforall
Last Activity: Jan 6 '10, 01:03 PM
Joined: Jan 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ganeshforall
    started a topic c++
    in C

    c++

    Write a function perfect that determines whether a number is a perfect number or not. This function should receive a number and return true if the number is perfect and false otherwise. Use this function in a program that determines and prints all the perfect numbers between 1 and 1000. Print the divisors of each perfect number to confirm that the number is indeed perfect as shown in the sample output below.

    An integer is said to be...
    See more | Go to post

  • ganeshforall
    replied to c++ program
    in C
    The following sequence of operations is a schedule of a transaction transferring $1,000 from account1 (i.e., a record acct1) to account2 (i.e., a record acct2). Assume the DBMS supports a lock upgrade whenever applicable.
    s_lock(acct1); // Set a shared lock on acct1

    read(acct1);

    acct1.balance = acct1.balance - 1000;

    x_lock(acct1); // Upgrade the shared lock on acct1 to an exclusive lock
    ...
    See more | Go to post

    Leave a comment:


  • ganeshforall
    started a topic c++ program
    in C

    c++ program

    write a program in c++ to calculate cgpa of student. we are given sgpa of the student and the total number of semisters.
    cgpa= sum of(sgpa*credits in that semister)/total number of credits.
    we have to use header file cgpa.h
    we have to use class name cgpa
    we have to use function name float calccgpa(float sgpa[],int credits[],int noofsem)
    sgpa= sgpa pf different sem
    credits=integer array contains the credits...
    See more | Go to post
No activity results to display
Show More
Working...