Question about Operating Systems

1 Answer

Creating a ring using two circles in c++ program

Create a class called circle which has a private member radius.Define methods for area and perimeter in this class.Use this class to create a class called ring which is the combination of two circles.Define area and perimeter of ring using area and perimeter of circles,define a constructor which creates rings of specific inner and outer radii.Create and delete objects of the ring class.Program must allow the  user to create a ring of his choice and display the area and perimeter of the ring so created.

Posted by on

  • Anonymous Mar 27, 2014

    Inner City or Perimeter Road access
    200 automobile parking day & night Prayer classes

    Religous Use Only. 7-days per week


1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.

    Brigadier General:

    An expert that has over 10,000 points.

  • Master
  • 10,406 Answers

Nice try!

If nobody has helped you since September 2008, when you asked the question, you probably scored a "zero" in your computer-programming course, and probably don't need an answer to your "homework" assignment.

Posted on Dec 05, 2009

1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

Circumference circle formula

The circumference of a circle is two times pi times the radius, where pi is about 3.14159. With a radius of 8.7mm, the circumference is about 54.7mm.

Mar 20, 2014 | Operating Systems

1 Answer

Create a base class called shapes. use this class t store two double type values that could be used to compute the area of figures.dreive two specific classes called triangle and rectangle from the base...

Calculate area of triangle and rectangle. Get the values from the area function that is calculated by both classes then display that area using your own class.

Sep 06, 2012 | Acer Operating Systems

1 Answer

Create a flowchart that computes for the circumference of circle. Assume that the value for radius is 7.23.Your flowchart should be able to show the value of the circumference.The pie value is 3.1416 which...

Create a flowchart that computes for the circumference of circle. Assume that the value for radius is 7.23.Your flowchart should be able to show the value of the circumference.The pie value is 3.1416 which is constant and never be changed.You can compute the circumference by using this formula 2piR?

Jul 06, 2011 | Operating Systems

1 Answer

Flowchart for inlementing a class circle in c++ which object of this class will represent a circle storing its radius coordinates of center as float. include a deffaulty constructor, access function, an...

Now if I give you the answer how are you going to learn anything about this? Your only asking for a flowchart. I will give you a hint. break the problem down. All the information needed except the Formulas used is in your post.

Sep 15, 2010 | Operating Systems

1 Answer

Why we take value of pi to find the area of circle?


the formula of area of circle is pi R square

where R is radius of the circle
pi value 3.14

Jul 13, 2010 | Microsoft Windows XP Professional

1 Answer

I want to create an application that when running would make appear a circle ( radius and color configurable ) move from centre-down of my laptop screen to centre-up ( speed of motion configurable ). this...

doing that sought of thing is high level tech programming and is certainly not achievable by just anyone, the only possible way is to make it a screen saver which isnt wat you want because you want to be able to do other things at the same time, your best bet would be to try and find a program already like that on the net but i dint like your chances of finding one

Oct 26, 2009 | Operating Systems

2 Answers

Example of program in c++ and there code

Hello my friend, I am Jonas I work as a programmer in some various programming languages. Here try this code:
This program is design to output the Diameter, circumference, and area given a radius of a circle. #include <iostream.h> int main() { int radius, diameter, circumference, area, pi; cout << " Enter the radius of a circle\n"; cin >> radius; pi = 3.14159; diameter = 2 * radius; circumference = 2 * pi * radius; area = pi * (radius)^2; cout << "Diameter formula executing.....(2 x r)\n"; cout << "Diameter is " << diameter << endl; cout << "circumference formula executing.....(2 x pi x r)\n"; cout << "circumference is " << circumference << endl; cout << "area formula executing......(pi x [r x r])\n"; cout << "area is " << area << endl; return 0; }
Also if you need tutorial you can visit this site Learning C++ .Hope this solution will able to help your problem solved. If you need more assistance just reply to this post or send me a mail at geo_jonas@yahoo.comThank you and Godbless.

Jul 09, 2009 | Operating Systems

1 Answer

How to write jdbc connections


welcome_title_image.gif Java JDBC Tutorial Java JDBC Tutorial
The JDBC ( Java Database Connectivity) API defines interfaces and classes for writing database applications in Java by making database connections. Using JDBC you can send SQL, PL/SQL statements to almost any relational database. JDBC is a Java API for executing SQL statements and supports basic SQL functionality. It provides RDBMS access by allowing you to embed SQL inside Java code. Because Java can run on a thin client, applets embedded in Web pages can contain downloadable JDBC code to enable remote database access. You will learn how to create a table, insert values into it, query the table, retrieve results, and update the table with the help of a JDBC Program example.

Although JDBC was designed specifically to provide a Java interface to relational databases, you may find that you need to write Java code to access non-relational databases as well.
JDBC Architecture jdbc.jpg Java application calls the JDBC library. JDBC loads a driver which talks to the database. We can change database engines without changing database code.
JDBC Basics - Java Database Connectivity Steps Before you can create a java jdbc connection to the database, you must first import the
java.sql package.
import java.sql.*; The star ( * ) indicates that all of the classes in the package java.sql are to be imported.
1. Loading a database driver,
In this step of the jdbc connection process, we load the driver class by calling Class.forName() with the Driver class name as an argument. Once loaded, the Driver class creates an instance of itself. A client can connect to Database Server through JDBC Driver. Since most of the Database servers support ODBC driver therefore JDBC-ODBC Bridge driver is commonly used.
The return type of the Class.forName (String ClassName) method is “Class”. Class is a class in
java.lang package.
try { Class.forName(”sun.jdbc.odbc.JdbcOdbcDriver”); //Or any other driver } catch(Exception x){ System.out.println( “Unable to load the driver class!” ); } 2. Creating a oracle jdbc Connection

The JDBC DriverManager class defines objects which can connect Java applications to a JDBC driver. DriverManager is considered the backbone of JDBC architecture. DriverManager class manages the JDBC drivers that are installed on the system. Its getConnection() method is used to establish a connection to a database. It uses a username, password, and a jdbc url to establish a connection to the database and returns a connection object. A jdbc Connection represents a session/connection with a specific database. Within the context of a Connection, SQL, PL/SQL statements are executed and results are returned. An application can have one or more connections with a single database, or it can have many connections with different databases. A Connection object provides metadata i.e. information about the database, tables, and fields. It also contains methods to deal with transactions.
JDBC URL Syntax:: jdbc: <subprotocol>: <subname> JDBC URL Example:: jdbc: <subprotocol>: <subname>•Each driver

Feb 01, 2009 | Microsoft Windows XP Home Edition

2 Answers

Can I get the asswer for the below questions

A book shop maintains the inventory of books that are being sold at the shop. The list has details like author, title, price, publisher and stock position. Whenever a customer wants a book, the sales person inputs the title and author and the system searches the list and displays a suitable message if it is not available. If it is available, the system displays the book details and requests for the number of copies required. If the copies are available, the total cost of the copies requested is displayed, otherwise the message ‘copies not in stock’ is displayed.
Design a system using a class called BOOKS with suitable member functions and constructors. Use new operator in constructors to allocate required memory space.

Nov 16, 2008 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

187 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers


Level 3 Expert

340 Answers


Level 3 Expert

2072 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides