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
san4es73 [151]
3 years ago
7

What does the Python print() function do?

Computers and Technology
1 answer:
olga55 [171]3 years ago
6 0

Answer:

B. Displays a string value

You might be interested in
write a 2d array c program that can capture marks of 15 students and display the maximum mark, the sum and average​
bekas [8.4K]

Answer:

#include <stdio.h>  

int MaxMark(int* arr, int size) {

   int maxMark = 0;

   if (size > 0) {

       maxMark = arr[0];

   }

   for (int i = 0; i < size; i++) {

       if (arr[i] > maxMark) {

           maxMark = arr[i];

       }

   }

   return maxMark;

}

int SumMarks(int* arr, int size) {

   int sum = 0;

   for (int i = 0; i < size; i++) {

       sum += arr[i];

   }

   return sum;

}

float AvgMark(int* arr, int size) {

   int sum = SumMarks(arr, size);

   return (float)sum / size;

}

int main()

{

   int student0[] = { 7, 5, 6, 9 };

   int student1[] = { 3, 7, 7 };

   int student2[] = { 2, 8, 6, 1, 6 };

   int* marks[] = { student0, student1, student2 };

   int nrMarks[] = { 4, 3, 5 };

   int nrStudents = sizeof(marks) / sizeof(marks[0]);

   for (int student = 0; student < nrStudents; student++) {              

       printf("Student %d: max=%d, sum=%d, avg=%.1f\n",  

           student,

           MaxMark(marks[student], nrMarks[student]),

           SumMarks(marks[student], nrMarks[student]),

           AvgMark(marks[student], nrMarks[student]));

   }

   return 0;

}

Explanation:

Here is an example using a jagged array. Extend it to 15 students yourself. One weak spot is counting the number of marks, you have to keep it in sync with the array size. This is always a problem in C and would better be solved with a more dynamic data structure.

If you need the marks to be float, you can change the types.

3 0
3 years ago
In a ____, a single communication path connects the network server, departmental servers, workstations, and peripheral devices.
nevsk [136]
In a bus network, a single communication path connects the network server,departamental servers, workstations, and peripheral devices.
c. bus network
4 0
3 years ago
Clara made ice-cream by mixing 200 g of strawberry juice with 500 g of cream. What is most likely the mass of the ice-cream form
Ronch [10]

700 g, mass of ingredients are added in this chemical change

7 0
3 years ago
Consider the following class definitions. public class BClass { private int x; public void set(int a) { x = a; } public void pri
Feliz [49]

Answer:

Option (ii) is the correct option to the following code.

Explanation:

In the following code of the Java Programming Language, there is two print function after the set function then, we firstly set the value of x and print it through print function which is already declared then, we set the value of y through set function then, print the value of y through print function. So, that's why the following option is correct.

4 0
3 years ago
Outputting all combinations. Output all combinations of character variables a, b, and c using this ordering abc acb bac bca cab
Alina [70]

Answer:

#include<iostream>

using namespace std;

 

int main()

{

   char a;  

   char b;  

   char c;

cin >> a;  

cin >> b;  

cin >> c;

 cout<<a<<b<<c<<endl;

 cout<<a<<c<<b<<endl;

 cout<<b<<a<<c<<endl;

 cout<<b<<c<<a<<endl;

 cout<<c<<a<<b<<endl;

 cout<<c<<b<<a<<endl;

 

cout << endl;

}

Explanation:

Note: code is hard coded it does not contain any logic based coding

5 0
4 years ago
Other questions:
  • A banker would like to present a spreadsheet as part of a presentation to potential clients. The spreadsheet makes use of severa
    14·1 answer
  • A storyboard is an example of an implementation tool.<br><br> A.<br> True<br><br> B.<br> False
    8·2 answers
  • Links to the four default folders can be found on the left side of the file explorer window under the _________ heading:
    5·2 answers
  • A(n) ______ is a type of collaborative website that allows users to create, add, modify, or delete website content.
    12·1 answer
  • Match each invention with its effects on the age of exploration.
    6·2 answers
  • What does PowerPoint display when you use the Notes Page view?
    14·2 answers
  • When a hardware or software interrupt occurs, the CPU calls________
    14·1 answer
  • Name two components required for wireless networking<br>(answer fastly)​
    12·1 answer
  • You are working on a ticketing system. A ticket costs $10. The office is running a discount campaign: each group of 5 people is
    5·1 answer
  • CODEHS- Please help!
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!