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
hodyreva [135]
3 years ago
6

Given a floating-point variable fraction, write a statement that writes the value of fraction to standard output. Do not write a

nything else to standard output -- just the value of fraction.
Computers and Technology
1 answer:
sertanlavr [38]3 years ago
8 0

Answer:

The statement to this question is "cout << fraction;".

Explanation:

In the given question it is declared, that a floating-point variable "fraction" is defined, which holds some value. To print this variable value in C++ program we use the print function, which is "cout". This function also used to print messages and values, in this question the print function uses the float variable "fraction", which prints variable value.

You might be interested in
Write a code in C++ that can save 100 random numbers in an array that are between 500 and 1000. You have to find the average of
Anni [7]

Answer:

#include <iostream>

#include <random>

//here we are passing our array and a int by ref

//to our function called calculateAverage

//void is infront because we are not returning anything back

void calculateAverage(int (&ar)[100], int &average){

 int sum = 0;

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

   //adding sum

   sum += ar[i];

 }

 //std:: cout << "\naverage \t\t" << average;

//calculating average here

 average += sum/100;

}

int main() {

 int value = 0;

 int average = 0;//need this to calculate the average

 int ar[100];

 //assign random numbers from 500 to 1000

 //to our array thats called ar

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

   value = rand() % 500 + 500;

   ar[i] = value;

   

 }

 calculateAverage(ar,average);

 // std:: cout << "\naverage should be \t" << average;

 

}

Explanation:

not sure how else this would work without having to pass another variable into the function but I hope this helps!

I commented out the couts because you cant use them according to ur prof but I encourage you to cout to make sure it does indeed calculate the average!

3 0
3 years ago
A video conference on the topic: "The internet solves more problems than it causes". You will then be asked to discuss this ques
uysha [10]

Answer:

Internet help us in daily life. i save our time, also it let us to connect with our friends and family, faster with no time

Explanation:

Hi, that what do i know

3 0
3 years ago
You have just set up a network that will use the TCP/IP protocol and you want client computers to obtain IP configuration inform
nataly862011 [7]

Answer:

tcp yvwfqsqctzvafa

Explanation:

dfzwxqgafvsizhzbsrCrzozxnzrfwhxifz

bdhgqgsts4shsytsdwvsTranscribed Image Textfrom this Question

Qs Assignment Scre: A A A Save Submit MSSlyment Questions ca2ce01h_Module2.04 Question 4 of 5 Check My Work Ken Chao is a veteran returning to school after six years in the military. After an injury that affected his sight, he finds it difficult to read text on computer screens. However, many of his classes require online research. How can Ken complete his search assignments effectively? How can search engines become more accessible for people with low vision like Ken? Check My Work

3 0
3 years ago
PLEASE HELP ITS CODING AND I INCLUDED A SCREENSHOT OF WHAT TO DO
madam [21]

Answer:

I need to have better photos in order to assist you...

Explanation:

I will attempt to get back with you if you can provide more clearer photos.

6 0
3 years ago
Read 2 more answers
Select all functions of utilities.
vivado [14]

Answer:

provides an easy way for workers to interact with their computers

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • What item on a business card is generally the most prominent?
    13·2 answers
  • HELP ASAP!!!! PLEASE !!! What information does the Media Access Control (MAC) on a network card provide?
    9·2 answers
  • What is one course of action available in every problem solving process?
    9·2 answers
  • Wice each lunar month, all year long, these tides occur. Whenever the Moon, Earth and Sun are aligned, the gravitational pull of
    5·1 answer
  • I NEED HELP WITH SOME PROBLEM ON BRAINLY PLEASE HELP
    10·1 answer
  • Which object event is an indication that something has been created but not committed into the database?
    13·1 answer
  • What is the alogarithm for solving the perimeter of a triangle
    11·1 answer
  • Who wont me???????????????
    6·2 answers
  • How can you refer to additional information while giving a presentation?
    12·1 answer
  • It is important to analyze the sources and uses of cash because:___.
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!