1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
OLga [1]
2 years ago
9

Chapter 4: Programming Project 1

Computers and Technology
1 answer:
Ksenya-84 [330]2 years ago
6 0

Answer:

#include <iostream>

#include <math.h>

using namespace std;

int main() {

 double n;

 cout << "Enter the number of sides: ";

 cin >> n;

 double s;

 cout << "Enter the side: ";

 cin >> s;

 double area = n * s * s /(4.0 * tan(3.14159265 / n));

 cout << "The area of the polygon is " << area;

}

You might be interested in
Which of the following things should you do first when planning your career?
Yanka [14]
Definitely D, if you want a career that will make you happy you should make a list of your job preferences and skills
8 0
3 years ago
Read 2 more answers
Write a loop that prints each country's population in country_pop. Sample output with input:
Nostrana [21]

Answer:

  1. country_pop = {
  2.    'China': 1365830000,
  3.    'India': 1247220000,
  4.    'United States': 318463000,  
  5.    'Indonesia': 252164800
  6. }  
  7. for key in country_pop:
  8.    print(key + " has " + str(country_pop[key]) + " people")

Explanation:

The solution code is written in Python 3.

Given a dictionary, country_pop with data that includes four country along with their respective population (Line 1-6). We can use for in loop structure to traverse through each of the key (country) in the dictionary and print their respective population value (Line 7-8). The general loop structure through is as follow:

                    for key in dict:

                         do something

One key will be addressed for each round of loop and we can use that key to extract the corresponding value of the key (e.g. country_pop[key]) and print it out.

4 0
4 years ago
Universal Containers has a custom picklist filed with three values on their products. The Admin would like to create a Dynamic B
Agata [3.3K]

Answer:

The Admin should Create a rule with three conditions, each that compares the configuration attribute filed with a static value.

8 0
3 years ago
When a formula includes a cell reference, Excel interprets that cell reference as being located relative to the position of the
blagie [28]

Answer:

True

Explanation:

Cell reference or cell address is defined as a union of a column letter and a row number that recognize a cell on a worksheet.

5 0
3 years ago
What are the different components of the cloud architecture?
sashaice [31]

Cloud computing architecture can be described as components and subcomponents required for cloud computing. Typically, these components consist of front (fat client, mobile device, thin client) and black end platforms (storage, servers), a cloud based delivery, and a network (Internet, Internet, Cloud). When all of these components are combined, they make up a cloud architecture.

3 0
3 years ago
Other questions:
  • The information security organization performs a significant role in the implementation of solutions that mitigate risk and cont
    6·1 answer
  • Janet has to create a webpage for a software company that should be accessible from both desktop computers and mobile devices. W
    12·1 answer
  • What is a header and/or a footer? The bolded subtitle for each section or the footnote on any section Text inserted into the top
    11·1 answer
  • Describe the objectives of e-commerce?​
    13·1 answer
  • Which type of business is best for Juanita to start? a corporation, because she needs a large investment to get started a sole p
    13·2 answers
  • Why did the chicken cross the playground
    7·2 answers
  • Is the following statement TRUE or FALSE?
    9·1 answer
  • $100 to whoever finishes my assignment by june 1st
    11·1 answer
  • How does calculate() work?
    6·2 answers
  • We begin with a computer implemented in a single-cycle implementation. When the stages are split by functionality, the stages do
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!