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
Papessa [141]
2 years ago
6

Select the correct answer.

Computers and Technology
1 answer:
liberstina [14]2 years ago
3 0

Answer:

not online stream i got it wrong

Explanation:

You might be interested in
Modify the FitnessTracker class, created in Chapter 4 Programming Exercise 3AB, so that the default constructor calls the three-
Ivenika [448]

Answer:

Is this coding?

Explanation:

5 0
3 years ago
In this lab, you write a while loop that uses a sentinel value to control a loop in a C++ program that has been provided. You al
SVETLANKA909090 [29]

Following are the C++ program to calculating the average value.

Program Explanation:

  • Defining header file.
  • Defining the main method.
  • Defining three double variable "numStars,averageStars, and totalStars", and one integer variable "numPatrons".
  • After declaring a variable, an input method is used that inputs an integer variable.
  • In the next step, a while loop is declared that uses an integer variable to the check value between 0 to 4.
  • Inside the loop, it adds the integer variable value and uses a conditional statement that checks integer value equal to 0, that hold 0 value into the "averageStars".
  • In the else block it calculates the average value and prints its value.

Program:

#include <iostream>//defining header file  

#include <string>//defining header file  

using namespace std;

int main()//main method

{

double numStars,averageStars,totalStars=0; // defining a double variable

int numPatrons = 0; //defining integer variable

cout << "Enter rating for featured movie: ";//print message

cin >> numStars;//input integer variable

while(numStars >= 0 && numStars<=4)//using while loop that use integer variable to check value in between 0 to 4

{

   numPatrons++; // increasing integer variable value

   totalStars += numStars; // using totalStars that adds numStars value in it

   cout << "Enter rating for featured movie: ";//print message

   cin >> numStars;//input double value

  }

if(numPatrons == 0)//using if block that check integer value equal to 0

      averageStars = 0;//holding value into averageStars

else//else block

      averageStars = totalStars/numPatrons;//calculating averageStars value

cout << "Average Star Value: " << averageStars << endl;//print message with averageStars value

return 0;

}

Output:

Please find the attached file.

Learn more:

brainly.com/question/16665413

3 0
3 years ago
Just trying to pass this class
liq [111]

Answer:

A. Your Foreman

Explanation:

They should be trained on whatever you are doing

4 0
3 years ago
Segmentation Faults Recall what causes segmentation fault and bus errors from lecture. Common cause is an invalid pointer or add
vfiekz [6]

Answer:

See Explanation

Explanation:

Q13. Line that caused the segmentation fault?

The segmentation fault was caused by line 15 i.e. scanf("%d",input);

Q14. How the line was fixed?

The reason for the segmentation fault is that the instruction to get input from the user into the integer variable "input" was not done correctly.

The correction to this is to modify scanf("d",input) to scanf("%d",input);

Q15. The bug?

The bug is that the method needs to return two value; the sum of the inputted numbers and the count of the inputted numbers.

However. it only returns the count of the inputted number.

So, the average is calculated as: 0/count, which will always be 0

How it was fixed?

First, change the method definition to: void and also include an array as one of its parameters.

<em>void read_values(double sum, double arr []) {</em>

Next:

<em>assign sum to arr[0] and values to arr[1]</em>

<em />

In the main method:

Declare an array variable: double arr [2];

Call the read_values function using: read_values(sum,arr);

Get the sum and values using:

<em>sum = arr[0];</em>

<em>values = arr[1];</em>

<em />

Lastly, calculate and print average:

<em>printf("Average: %g\n",sum/values);</em>

See attachment for complete modified program

Download txt
8 0
3 years ago
What can you do to help create a safe online environment? Check all that apply.
Kobotan [32]

3,4,6 this is the answer

4 0
4 years ago
Read 2 more answers
Other questions:
  • based on the transcript, what did broadcasting the story through the medium of radio allow welles to do?
    8·1 answer
  • Create a project for a sandwich shop. The project, named SalsSandwiches, allows a user to use a ListBox to choose a type of sand
    5·1 answer
  • Describe the difference between gui and cli​
    9·1 answer
  • What does limited access to a document mean?
    14·2 answers
  • 6. Write a program that can multiply an n x m matrix and m x n matrix together: The input specifications are these: Read n and m
    11·1 answer
  • Items that represent features of smartphones apps
    12·1 answer
  • A __________ is a repository of data gathered from operational data and other sources that is designed to serve a particular com
    7·1 answer
  • What website or search engine that helps people find the web pages that they are looking for by tying in the subject they want?​
    5·1 answer
  • How does a file reader know where one line starts and another ends?
    13·1 answer
  • The database cannot be migrated to a different engine because sql server features are used in the application’s net code. The co
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!