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
taurus [48]
3 years ago
8

Develop a program so that the output will produce the following :

Computers and Technology
1 answer:
hammer [34]3 years ago
4 0

Answer:

 #include <iostream>

using namespace std;

int main()

{

  float radius = 5.4;

  float circumference = 2 * 3.14 * radius;

  float area = 3.14 * radius * radius;

 

  cout<<"the circumference of the circle is "<<circumference<<endl;

  cout<<"the area of the circle is "<<area<<endl;

  return 0;

}

Explanation:

Include the library iostream for using the input/output instructions.

create the main function and define the variable with value. Then,

use the formula to calculate the circumference and are of circle.

circumference = 2*\pi *radius

area = \pi * radius^{2}

here, choose \pi = 3.14

after that, display the result.

Note: All variable define in float type.

You might be interested in
Create a program that a professor can use to display a grade for any number of students. Each student's grade is based on four t
chubhunter [2.5K]

Using the knowledge in computational language in C++ it is possible to write a code that organizes a student's grades in some subjects

<h3>Writing the program in C++</h3>

<em>#include<iostream.h></em>

<em>#include<conio.h></em>

<em>void main()</em>

<em>{</em>

<em>int i,n,sub1,sub2,sub3,sub4,totaltestscore; </em>

<em>cout<<"Enter the number of students : ";</em>

<em>cin>>n; </em>

<em>for(i=1;i<=n;i++) </em>

<em>{</em>

<em>cout<<" Enter the test score of subject 1 out of 100: ";</em>

<em>cin>>sub1; </em>

<em>cout<<" Enter the test score of subject 2 out of 100: ";</em>

<em>cin>>sub2; </em>

<em>cout<<" Enter the test score of subject 3 out of 100: ";</em>

<em>cin>>sub3; </em>

<em>cout<<" Enter the test score of subject 4 out of 100: ";</em>

<em>cin>>sub4; </em>

<em>totaltestscore=sub1+sub2+sub3+sub4;</em>

<em>if(totaltestscore>=372&&totaltestscore<=400) </em>

<em>cout<<" The grade of the student is : A "; </em>

<em>else</em>

<em>if(totaltestscore>=340&&totaltestscore<=371) </em>

<em>cout<<" The grade of the student is : B "; </em>

<em>else</em>

<em>if(totaltestscore>=280&&totaltestscore<=339) </em>

<em>cout<<" The grade of the student is : C "; </em>

<em>else</em>

<em>cout<<" The student fail "; </em>

<em>}</em>

<em>}</em>

See more about C++ at brainly.com/question/19705654

#SPJ1

3 0
3 years ago
Write a function called which_vowels_present that takes a single string parameter. Complete the function to return a list of str
romanna [79]

Answer:

import java.util.ArrayList;

import java.util.List;

public class Vowels {

   public static void main(String[] args) {

   String word = "I am David from Nigeria";

       System.out.println(which_vowels_present(word));

   }

   public static List which_vowels_present(String enteredWord){

       List<Character>list = new ArrayList<>();

       String word = enteredWord.toLowerCase();

       for (int i =0; i<word.length(); i++){

           if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i'

                   || word.charAt(i) == 'o' || word.charAt(i) == 'u') {

               list.add(word.charAt(i));

           }

       }

       return list;

   }

}

Explanation:

  • Using Java programming Language
  • Import java.util.ArrayList; and java.util.List
  • Create the method which_vowels_present which accepts a string parameter
  • Within the method create a list object
  • Use a for loop to iterate the string. within the for loop use an if statement to check individual characters of the string if any is a vowel, add it to the list
  • return the list
  • In the main method, create a test string, call the method and pass the string as parameter

5 0
3 years ago
Please help me ASAP!
VARVARA [1.3K]

Answer:

security hacker

Explanation:

security hackers are people who hack software to check for vulnerabilities. most of the time security hackers are white hat hackers who work to perform penetration tests to see if a software is secure.

tell me if this is wrong :)

6 0
3 years ago
Read 2 more answers
Write a C program to read the values of a 6 x 6 2D array from a file, and then produce an output file that contains the transpos
kvv77 [185]

Answer:

Explanation:

#include <stdio.h>

int main()

{

   int arr[5][5], trans [5][5], i, j;

   // Entering elements to the matrix

   printf("\nEnter matrix elements:\n");

   for (i = 0; i < 6; ++i)

       for (j = 0; j < 6; ++j) {

           printf("Enter element a%d%d: ", i + 1, j + 1);

           scanf("%d", &arr[i][j]);

       }

 

   printf("\nThe given input matrix is: \n");

   for (i = 0; i < 6; ++i)

       for (j = 0; j < 6; ++j) {

           printf("%d  ", arr[i][j]);

           if (j == 5)

               printf("\n");

       }

   // Transpose

   for (i = 0; i < 6; ++i)

       for (j = 0; j < 6; ++j) {

           trans[j][i] = a[i][j];

       }

   printf("\nThe output transpose of the matrix:\n");

   for (i = 0; i < 6; ++i)

       for (j = 0; j < 6; ++j) {

           printf("%d  ", trans[i][j]);

           if (j == 5)

               printf("\n");

       }

   return 0;

}

7 0
3 years ago
How is energy expended in active transport​
professor190 [17]

Here's the biology explanation:

Most of the energy expended by a cell in active transport is used to pump ions out of the cell across the plasma membrane.

7 0
4 years ago
Other questions:
  • RADIAC instruments that operate on the ionization principle are broken down into three main categories based on what?
    15·1 answer
  • What is looping? the rerecording of sound first recorded on set the recording of sound on set the process of combining different
    11·1 answer
  • Craig wants to create a computing infrastructure that will allow developers within his company to build applications on a primar
    9·1 answer
  • Imagine you had a learning problem with an instance space of points on the plane and a target function that you knew took the fo
    11·1 answer
  • How can a signature be added to an email message? Check all that apply.
    10·2 answers
  • Given the following snippet of code, answer the following two questions based on the code: typedef enum {Sun, Mon, Tue, Wed, Thu
    15·1 answer
  • WHERE DO I GO TO DO THIS AND WHAT DO I WRITE?????
    14·2 answers
  • When entering numbers that start with a zero, apply the _____ number format.
    12·1 answer
  • What is destination email address​
    8·1 answer
  • How are the four characteristics of the db approach related to the four functions of a dbms?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!