Because filling a pool/pond with water requires much more water than normal usage, your local city charges a special rate of $0.77 per cubic foot of water to fill a pool/pond. In addition, it charges a one-time fee of $100.00 for filling. This water department has requested you, as a programmer, write a C program that allows the user to enter a pool's length, width, and depth, in feet measurement. The program will then calculate the pool's volume, the volume of water needed to fill the pool with the water level 3 inches below the top, and the final cost of filling the pool, including the one-time fee. And then, all the entered sizes of the pool (in feet) and the three calculated values will be displayed on the screen. Finally, your full name as the programmer who wrote the program must be displayed at the end. To find the volume of the pool in cubic feet, use the formula: volume

Answers

Answer 1

Answer:

In C:

#include <stdio.h>

int main(){

   float length, width, depth,poolvolume,watervolume,charges;

   printf("Length (feet) : ");    scanf("%f",&length);

   printf("Width (feet) : ");    scanf("%f",&width);

   printf("Depth (feet) : ");    scanf("%f",&depth);

   poolvolume = length * width* depth;

   watervolume = length * width* (12 * depth - 3)/12;

   charges = 100 + 0.77 * watervolume;

   printf("Invoice");

   printf("\nVolume of the pool: %.2f",poolvolume);

   printf("\nAmount of the water needed: %.2f",watervolume);

   printf("\nCost: $%.2f",charges);

   printf("\nLength: %.2f",length);

   printf("\nWidth: %.2f",width);

   printf("\nDepth: %.2f",depth);

   printf("\nMr. Royal [Replace with your name] ");

   return 0;}

Explanation:

This declares the pool dimensions, the pool volume, the water volume and the charges as float    

float length, width, depth,poolvolume,watervolume,charges;

This gets input for length

   printf("Length (feet) : ");    scanf("%f",&length);

This gets input for width

   printf("Width (feet) : ");    scanf("%f",&width);

This gets input for depth

   printf("Depth (feet) : ");    scanf("%f",&depth);

This calculates the pool volume

   poolvolume = length * width* depth;

This calculates the amount of water needed

   watervolume = length * width* (12 * depth - 3)/12;

This calculates the charges

   charges = 100 + 0.77 * watervolume;

This prints the heading Invoice

printf("Invoice");

This prints the volume of the pool

   printf("\nVolume of the pool: %.2f",poolvolume);

This prints the amount of water needed

   printf("\nAmount of the water needed: %.2f",watervolume);

This prints the total charges

   printf("\nCost: $%.2f",charges);

This prints the inputted length

   printf("\nLength: %.2f",length);

This prints the inputted width

   printf("\nWidth: %.2f",width);

This prints the inputted depth

   printf("\nDepth: %.2f",depth);

This prints the name of the programmer

   printf("\nMr. Royal [Replace with your name] ");

   return 0;}

See attachment for program in text file


Related Questions

In which link-building opportunity are you directly competing with another website in a ""win-win"" situation

Answers

Answer:

I'm kind of sorta am now with aboutblank.com but it doesn't matter now

Explanation:

Multiple security concerns regarding biotechnology and animal research, or
pathogens and toxins are applicable to which two areas of specialized security?

Answers

Answer:

Pathogens are ubiquitous, found in hospital and research laboratories, scientific culture collections, infected people and animals, and the environment. The skills and equipment applied to solving challenges in medicine, ...

Research Centre for Emerging Pathogens with High Infectious Risk, Pasteur Institute. Côte d'Ivoire . ... independent laboratories areas and two animal suites, in addition to 20 BSL-2 and two BSL-3 laboratories.

Where is the start frame delimiter found in the Ethernet frame

Answers

The start frame delimiter found in the Ethernet frame is A preamble and begin body delimiter are a part of the packet on the bodily layer. The first  fields of every body are locations and supply addresses.

What is the cause of the body delimiter?

Frame delimiting, Addressing, and Error detection. Frame delimiting: The framing procedure affords essential delimiters which might be used to pick out a set of bits that make up a body. This procedure affords synchronization among the transmitting and receiving nodes.

The Preamble (7 bytes) and Start Frame Delimiter (SFD), additionally referred to as the Start of Frame (1 byte), fields are used for synchronization among the sending and receiving devices. These first 8 bytes of the body are used to get the eye of the receiving nodes.

Read more about the Ethernet :

https://brainly.com/question/1637942

#SPJ1

//Precondition: pLeft is the address of a MY_STRING handle // containing a valid MY_STRING object address OR NULL. // The value of Right must be the handle of a valid MY_STRING object //Postcondition: On Success pLeft will contain the address of a handle // to a valid MY_STRING object that is a deep copy of the object indicated // by Right. If the value of the handle at the address indicated by // pLeft is originally NULL then the function will attempt to initialize // a new object that is a deep copy of the object indicated by Right, // otherwise the object indicated by the handle at the address pLeft will // attempt to resize to hold the data in Right. On failure pLeft will be // left as NULL and any memory that may have been used by a potential // object indicated by pLeft will be returned to the freestore. void my_string_assignment(Item* pLeft, Item Right);

Answers

Answer:this is an answer i dont know :

Explanation:

Sheeeeeesssssssshhhhhhhhhhhh

Write a loop to print 56 to 70 inclusive (this means it should include both the 56 and 70). The output should all be written out on the same line.

Sample Run
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70

Answers

for i in range(56,71):
print(i, end = “ “)

Which of the following statements is true?

Group of answer choices

A.Only products made from plastic damage the environment

B.Products mostly of metal do the most damage to the environment

C.All products have some effect on the environment

D.Reducing the enciroment impact of products can be both dangerous and frustrating for users

Answers

Answer:

It due to the dirt subsatnces that get wired polluted and the chloroflurocarbons that destroy the ozone layer

Explanation:

Which are characteristics of Outlook 2016 email? Check all that apply.

The Inbox is the first folder you will view by default

While composing an email, it appears in the Sent folder.

Unread messages have a bold blue bar next to them.

Messages will be marked as "read" when you view them in the Reading Pane.

The bold blue bar will disappear when a message has been read.

Answers

Answer: The Inbox is the first folder you will view by default.

Unread messages have a bold blue bar next to them.

Messages will be marked as "read" when you view them in the Reading Pane.

The bold blue bar will disappear when a message has been read

Explanation:

The characteristics of the Outlook 2016 email include:

• The Inbox is the first folder you will view by default.

• Unread messages have a bold blue bar next to them.

• Messages will be marked as "read" when you view them in the Reading Pane.

• The bold blue bar will disappear when a message has been read.

It should be noted that while composing an email in Outlook 2016 email, it doesn't appear in the Sent folder, therefore option B is wrong. Other options given are correct.

Answer:

1

3

4

5

Explanation:

just did it on edge

What is a function in Microsoft Excel?
Question 1 options:

A holding area for the clipboard

A tool for creating charts

A method for checking spelling

A predefined calculation

Answers

Answer:

Tool for creating charts.

Explanation:

MS excel is clearly used for designing charts and spreadsheet in our daily life.

What is the size of type int on 64 bit system

(1/1 Point)


4 byte


8 byte


16 byte


None of the given

Answers

The answer is none of the given

What are the important points
concerning critical thinking?
(Select all that apply.)
You must evaluate information.
You should use your feelings.
You need to practice the right skills
You need to be well-spoken
You can learn it quickly
You need to use logic and reason
You need to be unbiased and unemotional

Answers

Answer:

You must evaluate information

Explanation:

The first step to thinking critically is to accept information only after evaluating it. Whether it's something read or heard, critical thinkers strive to find the objective truth. In doing this, these employees evaluate by considering possible challenges and solutions. This process of vetting new information and considering outcomes is called evaluation.

What does the CPU do in a modern computing device?

Enables the user to encrypt data
Enables the user to store data
Performs data computation
Provides electricity

Answers

Answer:  it connects to the power supply to run the pc

Explanation: your welcome

What are three things to look for on a website to check if it is valid? (5 points)

Answers

Answer:

a) Check whether the website is of an Established Institution or not

b) Does the website cite their credentials?

c) The URL of the website

Explanation:

Three things to look for in order to check if the given website is valid or not are

a) Check whether the website is of an Established Institution or not

b) Does the website cite their credentials and also what is the date of website origin

c) The URL of the website is also a good way to check the creditability

7- Calculator
Submit Assignment
Submitting a text entry box or a file upload
Create a simple calculator program.
Create 4 functions - add, subtract, multiply and divide.
These functions will print out the result of the operation.
In the main program, ask the user to enter a letter for the operator to enter 2 float input values.
After the user enters the values, ask the user what operation they want to perform on the values-A, S, M, D or E to Exit
and
Make sure you check for divide by O.
Your program should continue until E is typed.
upload or copy your python code to the submission

Answers

Answer:

In this tutorial, we will write a Python program to add, subtract, multiply and ... In this program, user is asked to input two numbers and the operator (+ for ... int(input("Enter Second Number: ")) print("Enter which operation would you like to perform?") ch = input("Enter any of these char for specific operation +,-,*,/: ") result = 0 if .

Explanation:

Write a short note on the topic ,' My Brother'.​

Answers

Answer:

I have an older brother whose name is Michael.

He is two years older than me and studies in Class 3.

My brother has a round face with black hair and brown eyes.

He is very caring, loving and outgoing by nature.

He takes care of me, whenever my parents are not at home.

He shares his toys with me, whenever we are playing indoors.

My brother is a well-mannered boy who is loved by everyone.

He is very good in his studies and helps me in my studies too.

He is very sincere and intelligent and never misses his school.

I love my brother and always pray to God to help us maintain a strong bond forever.

Explanation:

Answer:

Explanation:

To begin with, a brother is an important member of the family because he loves his siblings like a father, cares like a mother and sometimes annoys his sister(s). Sibling relationships usually tend to be emotionally powerful. Therefore, building a strong brother-sister relationship is important not only in childhood, but for the entire lifetime. Siblings learn social skills from each other like negotiating power and managing conflicts among themselves.

Do the same exercise but this time use the value returning function. Here is the skeleton of the main function. Write functions definition according to the function call. Note: Do not change the main(). Copy it as it is. Must define the function after the main(). Make sure you write the function prototype before main(). // function prototype.

Answers

Answer:

The function prototypes are as follows:

int findSum(int fn, int sn, int tn);

int findMin(int fn, int sn, int tn);

int findMax(int fn, int sn, int tn);

The functions are as follows:

int findSum(int fn, int sn, int tn){

   return fn+sn+tn;}

int findMin(int fn, int sn, int tn){

   int min = fn;

   if(sn<=min && sn<=tn){

       min = sn;    }

   if(tn <= min && tn <= sn){

       min = tn;    }

   return min;}

int findMax(int fn, int sn, int tn){

   int max = fn;

   if(sn>=max && sn>=tn){

       max = sn;    }

   if(tn>=max && tn>=sn){

       max = tn;    }

   return max;}

Explanation:

Given

See attachment 1 for the main function

Required

Write the following functions

findSumfind MinfindMax.

The following represents the function prototypes

int findSum(int fn, int sn, int tn);

int findMin(int fn, int sn, int tn);

int findMax(int fn, int sn, int tn);

This declares the findSum function

int findSum(int fn, int sn, int tn){

This returns the sum of the three numbers

   return fn+sn+tn;}

This declares the findMin function

int findMin(int fn, int sn, int tn){

This initialzes min (i.e. minumum) to fn

   int min = fn;

This checks if sn is the minimum

   if(sn<=min && sn<=tn){

       min = sn;    }

This checks if tn is the minimum

   if(tn <= min && tn <= sn){

       min = tn;    }

This returns the minimum of the three numbers

   return min;}

This declares the findMax function

int findMax(int fn, int sn, int tn){

This initialzes max (i.e. maximum) to fn

   int max = fn;

This checks if sn is the maximum

   if(sn>=max && sn>=tn){

       max = sn;    }

This checks if tn is the maximum

   if(tn>=max && tn>=sn){

       max = tn;    }

This returns the maximum of the three numbers

   return max;}

See cpp attachment for complete program which includes the main

is pseudocode obtained from Algorithm or is Algorithm obtained from pseudocode?

Answers

Answer:

An algorithm is defined as a well-defined sequence of steps that provides a solution for a given problem, whereas a pseudocode is one of the methods that can be used to represent an algorithm.

hope this gives you at least an idea of the answer:)

The rectangular shapes on the Excel screen are known as ______.

Answers

Answer:

work area

Explanation:

mark me as A brainlist

im hoxorny im so freaky

Hi guys, I am in need of help. I have an HTML assignment due today at 11:59 PM and I have to work with video and animation. I am having trouble with working on keyframes because when I run my program, my video remains the same size. I do not know what I am doing wrong. I have attached a picture of my code. Please help me ASAP.

Answers

Answer:

Nothing much is wrong

Explanation:

Nothing much is wrong with it but then again I'm a full on computer geek, I assume you need to go back and re-read it and edit whatever you feel is wrong or incorrect it's like a gut feeling and you will have doubts on certain parts of what you are doing

Which symbol is used for an assignment statement in a flowchart?

Answers

Equal symbol

equal symbol

Within most programming languages the symbol used for assignment is the equal symbol.

1) Create a method Sum to include a FOR loop. Get a scanner and input a number form the keyboard in main(). The method will take one parameter and calculate the sum up to that number. For example, if you pass 5, it it will calculate 1+2+3+4+5 and will return it back to main() method. Main method should call the method, get the sum back, and print a sum. You call the method from main() and get the result back to main() 2) Create another method: Factorial that calculates a Product of same numbers, that Sum does for summing them up. Make sure you use FOR loop in it. 3) Make a switch that Calls either sum(...) method OR factorial(...) method, depending on what user of the program wants. Ask the user to enter a selection, after the number is entered, such as "do sum" or "do factorial", read it with the Scanner next(), then call the appropriate method in a switch.

Answers

Answer:

Explanation:

The following Java code creates both methods using a for loop. Asks the user for the value and choice of method within the main() and uses a switch statement to call the correct method.

import java.util.Scanner;

class Brainly {

   static Scanner in = new Scanner(System.in);

   public static void main(String[] args) {

      System.out.println("Enter a value: ");

      int userValue = in.nextInt();

      System.out.println("Enter a Choice: \ns = do Sum\nf = do Factorial");

      String choice = in.next();

      switch (choice.charAt(0)) {

          case 's': System.out.println("Sum of up to this number is: " + sum(userValue));

              break;

          case 'f': System.out.println("Factorial of up to this number is: " + factorial(userValue));

              break;

          default: System.out.println("Unavailable Choice");

      }

   }

   public static int sum(int userValue) {

       int sum = 0;

       for (int x = 1; x <= userValue; x++) {

           sum += x;

       }

       return sum;

   }

   public static int factorial(int userValue) {

       int factorial = 1;

       for (int x = 1; x <= userValue; x++) {

           factorial *= x;

       }

       return factorial;

   }

}

Do my Twitter posts count as opinions or facts?

Answers

They count as opinions

Do exercises as follows:

a. Enter a whole number from keyboard, a while loop should calculate a sum of all numbers from one to that number that you entered
b. Enter a numeric score - grade of a test, your program should print a corresponding letter grade that matches the score.

For example, if you enter 89.3, the program should display "B", and if you enter 95.7, then the program displays "A"

Answers

Answer:

Explanation:

The following Java program asks the user for a number to be entered it and uses a while loop to sum up all the numbers from 1 to that one and print it to the console. Then it asks the user for a grade number and prints out the corresponding letter grade for that number.

file = open('text.txt', 'r')

total_rainfall = 0

for line in file:

   line = line.replace('\n', '')

   info = line.split(' ')

   info = [i for i in info if i != '']

   print(info[0] + " will have a total of " + info[1] + " inches of rainfall.")

   total_rainfall += int(info[1])

average = total_rainfall / 3

print("Average Rainfall will be " + str(average) + " inches")

Use the drop-down tool to select the word or phrase that completes each sentence.

The manipulation of data files on a computer using a file browser is
.

A
is a computer program that allows a user to manipulate files.

A
is anything that puts computer information at risk.

Errors, flaws, mistakes, failures, or problems in a software program are called
.

Software programs that can spread from one computer to another are called
.

Answers

Answer:

file management file manager security threat bugs virus

Explanation:

In this lab you will learn about the concept of Normal Forms for refining your database design. You will then apply the normalization rules: 1NF, 2NF and 3NF to enhance your database design. Lab Steps: Read about the Normal Forms in your textbook, chapter 14, pages 474 to 483. Check the learning materials on Normal Forms under the Learning Materials folder of Week 5. Apply the Normalization rules to your database design. Describe in words how 1NF, 2NF and 3NF apply to your design/database schema. Apply all the modifications that you made due to applying NF rules to your actual database in the DBMS (MS SQL Server). Put your explanation for how 1NF, 2NF and 3NF apply to your database in a Word document OR PowerPoint presentation.

Answers

Answer:

I don't know

Explanation:

is about knowing how to make use of the refinery

Write a class called MonetaryCoin that is derived from the Coin class presented in Chapter 5 (the source code for Chapter 5 examples is available via Moodle). [6 pts] Store one integer and one float in the MonetaryCoin that represent its value and weight in grams, respectively. Add a third variable of your choice (related to a coin, of course) and use self-descriptive variable names for all three variables. Pass the values to the constructor in MonetaryCoin and save them to your variables.

Answers

Answer:

Explanation:

The following Java code creates the MonetaryCoin class that extends the Coin class. It then creates three variables representing the MonetaryCoin object which are its value, weight, and coinYear. These are all passed as arguments to the constructor and saved as instance variables.

public class MonetaryCoin extends Coin {

   

   int value;

   float weight;

   int coinYear;

   

   public void MonetaryCoin(int value, float weight, int coinYear) {

       this.value = value;

       this.weight = weight;

       this.coinYear = coinYear;

   }

}

In the formula =C5*$B$3, C5 is what type of cell reference?

relative
absolute
mixed
obscure

Answers

Answer:

relative

Explanation:

i just got a 100 and it says its right on odsyware

Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine object that performs the following operations:

Purchases input number of drinks Restocks input number of bottles.
Reports inventory Review the definition of "VendingMachine.cpp" by clicking on the orange arrow.
A VendingMachine's initial inventory is 20 drinks.

Ex: If the input is: 5 2
the output is: Inventory: 17 bottles

Answers

Answer:

In C++:

#include <iostream>

using namespace std;

class VendingMachine {

 public:

   int initial = 20;};

int main() {

 VendingMachine myMachine;

   int purchase, restock;

   cout<<"Purchase: ";  cin>>purchase;

   cout<<"Restock: ";  cin>>restock;

   myMachine.initial-=(purchase-restock);

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

Explanation:

This question is incomplete, as the original source file is not given; so, I write another from scratch.

This creates the VendingMachine class

class VendingMachine {

This represents the access specifier

 public:

This initializes the inventory to 20

   int initial = 20;};

The main begins here

int main() {

This creates the object of the VendingMachine class

 VendingMachine myMachine;

This declares the purchase and the restock

   int purchase, restock;

This gets input for purchase

   cout<<"Purchase: ";  cin>>purchase;

This gets input for restock

   cout<<"Restock: ";  cin>>restock;

This calculates the new inventory

   myMachine.initial-=(purchase-restock);

This prints the new inventory

   cout << "Inventory: "<<myMachine.initial<<" bottles";  

   return 0;}

Given main() and the Instrument class, define a derived class, StringInstrument, for string instruments.
Ex. If the input is:
Drums Zildjian 2015 2500 Guitar Gibson 2002 1200 6 19
the output is:
Instrument Information: Name: Drums Manufacturer: Zildjian Year built: 2015 Cost: 2500 Instrument Information: Name: Guitar Manufacturer: Gibson Year built: 2002 Cost: 1200 Number of strings: 6 Number of frets: 19

Answers

Answer:

Explanation:

The following derived class called StringInstrument extends the Instrument class and creates the necessary private variables for number of Strings and number of Frets. Then it creates getter and setter methods for each of the variables. This allows them to be called within the main method that has already been created and output the exact sample output as seen in the question.

class StringInstrument extends Instrument {

   private  int numStrings, numFrets;

   public int getNumOfStrings() {

       return numStrings;

   }

   public void setNumOfStrings(int numStrings) {

       this.numStrings = numStrings;

   }

   public int getNumOfFrets() {

       return numFrets;

   }

   public void setNumOfFrets(int numFrets) {

       this.numFrets = numFrets;

   }

}

When identifying who will send a presentation, what are the two types of audiences?

Answers

Answer:

Explanation:Demographic audience analysis focuses on group memberships of audience members. Another element of audience is psychographic information, which focuses on audience attitudes, beliefs, and values. Situational analysis of the occasion, physical setting, and other factors are also critical to effective audience analysis.

First, open two separate terminal connections to the same machine, so that you can easily run something in one window and the other. Now, in one window, run vmstat 1, which shows statistics about machine usage every second. Read the man page, the associated README, and any other information you need so that you can understand its output. Leave this window running vmstat for the rest of the exercises below. Now, we will run the program mem.c but with very little memory usage. This can be accomplished by typing ./mem 1 (which uses only 1 MB of memory). How do the CPU usage statistics change when running mem

Answers

dnt listen to da file shi
Other Questions
At Wegmans a 12 pack of paper towels costs $15.72. At Tops a 10 pack of paper towels cost $13.35. Which store has the better buy? What is the difference in unit prices? help me................... (b) 3, 3, 5 andHOMEWORK: Complete the activity in your classwork ethe questions before you consult the memorandum attACTIVITY 1:x.) Find all the prime factors of each of the followinga) 825(b) 999-) 538(d) 113 Easy WILL.. Give the Crown !!!! IF RIght History EASY PLZ HElp..ASAP PLZZZZ HELP HELPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP....................................Question: Why genocides are not stopped.? Why don't people step in to stop them? $1. Una esfera de latn de 3 piescbicos a 22C se expuso al calor hasta alcanzar una temperatura de66C. Cul ser su nuevo volumen'si el coeficiente de dilatacin lineal del latn es de 18x1095 Why is gun crime so high in the United States compared to all other countries where guns are legal?(THIS IS ACTUALLY FOR GOVERNMENT) A social studies quiz has 4 true-or-false questions. The following list shows the possibilities for a student's responses to these questions. TTTT, TTTF, TTFT, TTFF, TFTT, TFTF, TFFT, TFFF, FTTT, FTTF, FTFT, FTFF, FFTT, FFTF, FFFT, FFFF How many outcomes include 2 true and 2 false answers? Find the value of x. please please help i will mark u brill please fast i need it right know !!!!! Help 10pts. What is the surface area of the triangular prism?A)175 cm2B)196 cm2216 cm?D)222 cm2 Use the following questions to help establish how your mental health influences the health habit you chose for your health habit action plan: Did your personal values (spiritual wellness) help convince you to change this health habit? Write the expression: twice a number increased by seven can someone help please? this is due soon. ill give brainliest Spanish help please! 15 points Which two details from the passage support the answer in Part A? A '"I haven't gone anywhere.''' (paragraph 5) B "I was free." (paragraph 5) C "The wind flicked my hair . . " (paragraph 5) D ". . . I like the way the water sprang up from the sprinkler after the pressure of my tires." (paragraph 5) E "You can run over my leg with your trike if you want." (paragraph 5) F "I folded my arms behind my head and watched a jay . ..." (paragraph 6) Zrb rysunek pomocniczy i oblicz miary ktw w szeciu trjktach, ktre otrzymasz wykrelajc dwusieczne ktw trjkta. Kt ABC wynosi 620 , kt ACB wynosi 1020 . PLEASE HURRY The letterrepresents the location of -1.5 on the number line.A B CD-3-2-1 012 3 Recommend THREE ways in which woman andChildrencan be protected from discrimination and violence Answer the questions using the words in parentheses. Choose the correct answer. You are replacing the object noun with an object pronoun in your answer.Modelo: Hueles la carne? (no - la pizza) >> No, no la huelo. Huelo la pizza. (Do you smell the meat? > No, I don't smell it. I smell the pizza.)Answer the questions in complete sentences in Spanish.Oyes la radio por la noche? (no - mis CD)Your answer:No, no la oigo. Oigo mis CD.No, no la oligo mix CD. No, no lo oigo. Oigo mi radio.please help if you speak Spanish A scientist measures the standard enthalpy change for the following reaction to be 67.9 kJ:Fe2O3(s) + 3 H2(92Fe(s) + 3 H2O(9)Based on this value and the standard enthalpies of formation for the other substances, the standard enthalpy of formationof H2O(g) iskJ/mol.