I need to check my code has all these requirements. The requirements for “main()” are: a. Use an object. b. Declare all required variables. c. Output user information. d. Input the radius 1 and radius 2 to be used to calculate the area of two circles. e. Use object Circle to access an array that contains the radius of the two circles. f. Use a function to display the area of the two circles. Requirements for the function to display the area of the two circles: a. The function is a void function. b. The function receives the Circle object …

Member Avatar
Member Avatar
+0 forum 7

Calculate the total area and volume occupied by a cylinder. Correct or not? #include <stdio.h> #include <math.h> int main() { float At, V, r, h; printf("\n ===========Calculate the total area and volume occupied by a cylinder============\n"); printf("\n the base radius.......: "); scanf("%f", &r); printf("\n Cylinder height.: "); scanf("%f", &h); At = ((2 * M_PI * r * r) + (2 * M_PI * r * h)); V = (M_PI * r * r * h); printf("\n Area = %f", At); printf("\n Volume = %fnn"\n, V); printf("\n"); }

Member Avatar
Member Avatar
+0 forum 5

Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Webhost help comment: If error message 'mysql_fetch_array(): supplied argument is not a valid MySQL result resource' or similar is displayed on your website, it means there are some issues with your MySQL query. Please kindly note this error is not related …

Member Avatar
Member Avatar
+0 forum 1

Write a Java application that prompts and reads a value representing the radius, of a circle, then prints the circle's circumference and area. I do not know where to start

Member Avatar
Member Avatar
+0 forum 15

Hello good day. I am trying to figure out if it is at all possible for me to do but I want to access the area that is outside the JScrollPane's view when my JFrame is resized. Let me explain; I have a LayeredPanewith two layers within a JscrollPane. The Second layer's visible content is off to one side so that it looks like a dock. When I click it, it slides left, on to the screen and vice versa when clicked again. This works well as long the window is maximized. However once the JFrame resizes (shrinks), this second …

Member Avatar
Member Avatar
+0 forum 3

Hi I need help with finding the area underneath a curve. Here is what I have so far; #include "stdafx.h" #include <iostream> #include <string> #include <cmath> using namespace std; struct term { float coeF; float exP; char name; }; struct function { int size; term terms[10]; }; struct Integral { float lowerBound; float upperBound; function func; }; float findHeightOfFunction(function func, float x); int main() { Integral integral; char userContinue = 'y'; for(int i=0;i<10;i++) { //fill the term cout<<"Enter in a coefficient: "; cin>>integral.func.terms[i].coeF; cout<<"Enter in an exponent: "; cin>>integral.func.terms[i].exP; cout<<"Do you want to enter in more terms: "; cin>>userContinue; if(userContinue …

Member Avatar
Member Avatar
+0 forum 5

What does a "private" area of a website involve?Webhooks, tokens, APIs? I am developing a website which will allow registered users to register, make a payment, and then get transferred to an area where they write an online essay in a textarea. I DON'T WANT NON-PAYERS TO GO HERE. The payment mechanism that I want is STRIPE.COM or one of its 3rd party affiliates, such as gohelium.com or spacebox.io . With STRIPE (or one of its affiliates, such as gohelium.com or spacebox.io), it's very easy to setup, and after a person makes a payment, I have no problem making them …

Member Avatar
Member Avatar
+0 forum 1

Hello. Can I add any data directly from table into data base using dreamviewer 8 by php? i mean in design view, i add table. then when i enter a data in the cell, so can i add this cell text to a field in DB table? Also how can i add extra row when someone clicks the link "Cleick here to add another row". The code is; <h1 align="center">PATIENT RECORD </h1> <p align="center">Enter New Patient Record. </p> <form action="" method="get"> <table width="559" border="1" align="center"> <tr> <td><label>Patient ID : <input type="text" name="pid" /> </label></td> <td><label>Patient Name : <input type="text" name="pname" …

Member Avatar
Member Avatar
+0 forum 2

**My assignment:** Write a program that extends the example that we have done in class. Create a class called Trapezium, which is determined by two parallel sides “a” and “b” and the height “h” between them.The area of the trapezium can be calculated as Area = (a+b)h/2 The perimeter = a + b + 2 sqrt[{h2 + (b-a)2/4}] Add this class to your project and add a couple of them to your object array. Print the array of objects. Sort the array and print it again. **My code so far: import java.util.*; import java.awt.*; import javax.swing.*; import java.awt.geom.*; import java.util.Set; …

Member Avatar
Member Avatar
+0 forum 3

How to shrink the client area of a multiline textbox (Windows.Forms.Textbox) from the non-client area? That is I need to draw a focus line in-between verticalscrollbar and the text area of textbox (i.e line to be drawn inside textbox). So I need a space between the client area (typable area) and the scrollbar to draw the line. Any idea how to achieve this?

Member Avatar
Member Avatar
+0 forum 1

Hello, I am fairly new to c and i am finding it hard to spot why a part of a program I am making is not working. The program lets you work out the area and circumference of a circle. This is the code: #include <stdio.h> #include <math.h> int area() ; int circ() ; int main() { char choice ; printf("\n Do you want circumference(c) or area(a): ") ; scanf("%c" , &choice ) ; if(choice = 'c') { int circ() ; } if(choice = 'a') { int area() ; } else { int main() ; } return 0 ; } …

Member Avatar
Member Avatar
+0 forum 6

I need a help? I m designing a webpage. I have used <**div**>s everywhere, from header to footer, moreover I have used **relative** **positioning** with **top** and **right** tag. Somewhere top value has gone -1200 and so. At last I m left with about 800px of useless area below the footer and I don't want that. I looks very disgusting.Is there anyway of removing those ***whitespaces*** or stopping scroll below the ***footer*** block???? I there anyone for rescue?? **HELP** **HELP** **HELP**!!!!!!!!!!!!!!!

Member Avatar
Member Avatar
+0 forum 6

How to connect local area network connection

Member Avatar
Member Avatar
+0 forum 3

``this code keeps kicking out the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a2595218/public_html/login.php on line 49 with the out-put " The username you enterted was not found " I should be seeing the error " You must active your acount to play. $form";" ` there for i thinks it must be skipping over the data base bit or something like that ?, ------------------------------------------- <?php error_reporting (E_ALL ^ E_NOTICE); session_start(); ?> <HTML> <HEAD> <TITLE></TITLE> <META content="text/html; charset=utf-8" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.19170"> <STYLE type=text/css> BODY { FONT-FAMILY: verdana, arial, sans-serif } </STYLE> </HEAD> <BODY> …

Member Avatar
Member Avatar
+0 forum 9

Hello. I have a piece of code currently where I have a JFrame that I have removed the title bar and borders etc from using .setUndecorated(true). I have tried a number of ways with no success to make this window draggable by it's client area. [CODE] JFrame f = new JFrame("New Frame"); f.setUndecorated(true); f.setVisible(true); f.setBounds(0, 0, 400, 400); [/CODE] What I want in the end is to have a window that has a no-title bar etc so that I can create the frame from scratch and I would like it to be dragged by just clicking anywhere on the window …

Member Avatar
Member Avatar
+0 forum 6

I've looked everywhere and tried so many things nothing has worked. My cable is fine, I reinstalled my driver and changed my speed/duplex settings to everything but nothing worked I had AVG AV and I removed it from my computer and also took down my firewalls from windows and still nothing. I upgraded my linksys WRT54G router. I cam currently using windows vista sp2 and connected to my router via wireless connection. It says unidentified network and local only, please help. Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. C:\Users\PC Gamer>ipconfig /all Windows IP Configuration Host …

Member Avatar
Member Avatar
+0 forum 2

Hey guys! I'm trying to write a program that calculates the area of the convex hull of a set of points in a plane. I can find which points construct the convex hull but calculating the area is a little bit difficult for me. I guess the problem is that I sort the points, and then remove duplicates before calculating the area. Any help will be appreciated :). [CODE] #include <iostream> #include <vector> #include <cmath> #include <iomanip> #include <fstream> #include <algorithm> using namespace std; class Point { private: double x; double y; public: void get_coords(double a, double b) { x …

Member Avatar
Member Avatar
+0 forum 10

Well I'm trying to connect my xbox to my pc it's been connected to my pc for about four years but now I recently moved and now for some reason my pc decides it doesn't want to connect to my xbox it reconizes that it's hooked up and it tries to connect then it stops and I get an error saying limited or no connectivity Ive tried to do a restore and it connects after but then for some reason my wireless Internet connection stops working this really doesint make any since because everything worked fine like a week ago …

Member Avatar
Member Avatar
+0 forum 6

So my problem is that, i have a text area with 3 rows. Its a part of a chat application which receives text from a user. I want to send the text and clear the text area as soon as the user presses the enter key. Now the problem is that whenever user presses the enter key the cursor goes to next line(row) and then on clearing the text area it comes to first, so it looks weird to a user that the cursor goes to next line and then comes to first. So I want to stop the cursor …

Member Avatar
Member Avatar
+0 forum 4

The End.