473,503 Members | 756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Homework problem with satellite program

16 New Member
I need to make a program where:

In this program you MUST use the following functions and header file (library function):
• #include<cmath >
• fabs
• pow
• sqrt

You run a company that ships satellite dishes to customers. The satellite dish is ordered based on the area of its opening (in square inches):

You need to calculate how much cardboard (in square inches) and how much Styrofoam peanut packing (in cubic inches) you will need.

The box will be a perfect cube just large enough to hold the satellite dish

The Styrofoam peanuts are inexpensive, so we will just calculate the amount needed to fill the box completely, and not worry about the peanuts that will overflow due to the volume of the dish. In your calculations use PI = 3.141592654.

The output should look like this:

How big is the satellite dish (in square inches)? 75
You need 572.958 square inches of cardboard.
You need 933.162 cubic inches of Styrofoam peanuts.


In your program code you need to check whether or not the number the user entered is negative. If it is negative your output should look like the following:

How big is the satellite dish (in square inches)? -100
Your answer is negative, converting to the absolute value.
You need 763.944 square inches of cardboard.
You need 1436.7 cubic inches of Styrofoam peanuts.


Can anybody help me? I tried doing it but it wasnt working (and my program got deleted...)
Nov 1 '06 #1
0 1147

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1625
by: Kaan ?cg?n | last post by:
Hello NG, we have created a database for our schedules on the SQL server 2000. As we have many satellite stations, we created a merge publication. The aim of this merge publication is to provide...
0
1109
by: Notre Poubelle | last post by:
Is it possible to update resources in a satellite assembly in place? I know how to programmatically create a satellite assembly (see...
6
3531
by: autogoor | last post by:
If you visit maps.google.com and select "satellite", you get a pic. But it is not <img href="...">, and it gets quick nice response to mouse movements and click. Does anyone know how this is...
16
7260
by: !TG | last post by:
I have a table with a date field. All I want to do it get all the records with a date before today. I tried the following: "SELECT * FROM StateLicenses Where (Exp < #07/26/2005#) Order By...
0
1497
by: BillKi | last post by:
I am working on localizing my webservice to return localized error messages to our client app. I have created 3 resx files, 1 for english (default), 1 for spanish, and 1 for italian. When I...
3
1611
by: gjenglish | last post by:
I have recently migrated an ASP.NET 1.1 web application to ASP.NET 2.0. In this application I am storing all my resources in satellite assemblies and I am accessing them via the ResourceManager...
1
1489
by: scpedicini | last post by:
Let's say that I've built an assembly, called myapi.dll whose default resource messages are english. Then let's say I create a german satellite assembly for the assembly called...
0
2304
by: npthomson | last post by:
Hi all, This could get a bit complicated but I'll try to be as clear as possible. I've written an application that discovers plugins at runtime using reflection from a subdirectory of the...
2
2391
by: Nader | last post by:
I'm trying to use satellite assemblies in my web application. I got a problem with loading resource files. I have the falowing code: protected ResourceManager GetStrings = new...
0
7282
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5017
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
389
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.