Question about Microsoft Windows XP Professional

1 Answer

Create a class FLOAT that contains one float data member. Overload all the four arithmetic operators so that they operate on the objects of FLOAT.

Posted by on

  • ultimitloozr May 11, 2010

    Sounds like an assignment for a programming class. Sorry, I don't do homework for students.

  • Crap Iemael
    Crap Iemael May 11, 2010

    What?????

×

Ad

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that got 5 achievements.

    Scholar:

    An expert who has written 20 answers of more than 400 characters.

    Cheetah:

    An expert who has answered 20 or more questions within one hour.

  • Expert
  • 102 Answers

Are you writing a script that will fail over to a float value if the integer
value exceeds the -2,147,483,648 to 2,147,483,647. range?

Posted on Sep 27, 2016

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

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

Hi,
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.
goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

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 Computers & Internet

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 | Computers & Internet

1 Answer

Give a name of the baby boy and girl which meaning is Leaders,Healed by God, and Gods Precious Gift


creat a class FLOAT that contains one float data member overloaded all the four arithmatic operations sothat they operate on objects of float?

May 04, 2010 | ArcMedia ABC of Baby Names

1 Answer

Create an employee class contains following members data members:


class employee
{
int emp_no;
char emp_name[80];
float Basic;
public:
employee(int no, char *name, float basic)
{
emp_no=no;
emp_name=name;
Basic=basic;
}

float int calc_da()
{
return(Basic*52/100);
}

float calc_it()
{
return((Basic+calc_da())*30/100);
}

float calc_netSal()
{return(Basic+calc_da()-calc_it();}
};

Feb 28, 2009 | IBM Computers & Internet

1 Answer

How to play audio clip in java


  • Create an AudioClip object
  • Load .au sound file into AudioClip
  • Play sounds once or loop continuously
  • Stop playback


Here's how the code for these steps looks:
import java.applet.*;
AudioClip ac = getAudioClip(getCodeBase(), soundFile);
ac.play(); //play once
ac.stop(); //stop playing
ac.loop(); //play continuously


It would seem logical to use this same code to play audio clips in a Java application. Unfortunately, if you do that you will get errors from the compiler. Why? Because the AudioClip object and the getAudioClip() method are part of the java.applet package -- and are not part of applications. The good news is we can dive down and make things work ourselves.
The trick to solving this problem is to use some undocumented features that are provided by Sun in its JDK. Taking a peek inside the classes.zip file from the Sun JDK (using any of the various zipfile utilities), we find not only the standard Java packages such as java.applet but also sun.audio. (These are in the directory sun/audio.)
The sun.audio package contains everything we need to be able to play audio clips! Here's the code:
import sun.audio.*; //import the sun.audio package
import java.io.*;
//** add this into your application code as appropriate
// Open an input stream to the audio file.
InputStream in = new FileInputStream(Filename);
// Create an AudioStream object from the input stream.
AudioStream as = new AudioStream(in);
// Use the static class member "player" from class AudioPlayer to play
// clip.
AudioPlayer.player.start(as);
// Similarly, to stop the audio.
AudioPlayer.player.stop(as);


To use a URL as the audio stream source, substitute the following for the input stream and audio stream setup:
AudioStream as = new AudioStream (url.openStream());


Playing the audio stream continuously adds a bit more complexity:
// Create audio stream as discussed previously.
// Create AudioData source.
AudioData data = as.getData();
// Create ContinuousAudioDataStream.
ContinuousAudioDataStream cas = new ContinuousAudioDataStream (data);
// Play audio.
AudioPlayer.player.play (cas);
// Similarly, to stop the audio.
AudioPlayer.player.stop (cas);

Jan 22, 2009 | Computers & Internet

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 | Computers & Internet

1 Answer

Creating a ring using two circles in c++ program


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.

Sep 15, 2008 | Computers & Internet

1 Answer

Error 232*


Error 232 Severity 16
Error message text Arithmetic overflow error for type %s, value = %f.
Explanation This error occurs when Adaptive Server detects an arithmetic overflow error during execution of a SQL statement. Arithmetic overflows occur when a variable has too few places to store the converted data. In particular, Error 232 is raised when an overflow occurs for a variable of datatype float.
Error 232 can occur during execution of the convert function. It can also occur during implicit conversion within Adaptive Server, either during a stored procedure run or during execution of a SQL statement which converts a float value to some other datatype.
Action Determine which variable is causing the problem based on the datatype reported in the error message output and the SQL statement on which the error occurred. If the error occurs within a stored procedure, an additional error message will be displayed showing the name of the stored procedure and the line number where the error occurred.
Increase the size of the variable that is causing the error. If it is in a procedure, re-create the procedure.
If this error occurs on a Sybase-supplied system stored procedure, contact Sybase Technical Support.
Versions in which this error is raised

Jul 24, 2008 | HP OfficeJet 7310 All-In-One InkJet...

1 Answer

Schema classes and attributes


Every directory object you create is an instance of an object class contained in the schema. Each object class contains a list of associated attributes that determine the information the object can contain. Classes and attributes are defined independently, so that a single attribute can be associated with multiple classes. All schema classes and attributes are defined by the classSchema and attributeSchema objects, respectively.

Classes

ClassSchema objects are used to define classes in the schema. A classSchema object provides the template for building directory objects of that class. Examples of classSchema include User and Server. A classSchema object contains, among other things, the following information:
Class type (structural, abstract, or auxiliary)

Common name and Lightweight Directory Access Protocol (LDAP) display name

Lists of the "must contain" and "may contain" attributes for instances of the object

Relative distinguished name attribute

A list of possible parent classes

Class types

Three different types of classes exist in the schema:Class type Purpose

Structural
Used to instantiate objects (users, servers and so on) in the directory.

Abstract
Provides templates for deriving structural classes

Auxiliary
Contains predefined lists of attributes that can be included in structural and abstract classes

Attributes

AttributeSchema objects are used to define attributes in the schema. An attributeSchema object determines the allowable contents and syntax for instances of that attribute in the directory. Examples of attributeSchema include User-Principal-Name and Telex-Number. An attributeSchema object contains, among other things, the following information:•
Common name and LDAP display name

Syntax rules

Data constraints (single versus multivalued, minimum, and maximum values)

Whether and how the attribute is indexed

Jul 17, 2008 | Microsoft Windows Server Standard 2003 for...

Not finding what you are looking for?
Microsoft Windows XP Professional Logo

Related Topics:

318 people viewed this question

Ask a Question

Usually answered in minutes!

Top Microsoft Computers & Internet Experts

micky dee

Level 3 Expert

2775 Answers

Piyal Perera
Piyal Perera

Level 3 Expert

528 Answers

Les Dickinson
Les Dickinson

Level 3 Expert

18394 Answers

Are you a Microsoft Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...