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
Simora [160]
3 years ago
7

What stdio.h input function would be used to get input from the user by the keyboard? Write the code to obtain the voltage drop

across a resister from the user. Assume the input variable is called vr1. What stdio.h output function would be used to provide output to the monitor?
Computers and Technology
1 answer:
torisob [31]3 years ago
8 0

Answer:

scanf() function is used to get a input from keyboard.This function is in the stdio.h library.To use this function we must include the stdio.h library first in the code. Then only we can use the scanf() function in any code.printf() function is used to print anything .this function is from stdio.h library.

Code to read voltage drop across the register.

#include <stdio.h>

// main function

int main(void) {

// variable

double vr1;

printf("Enter voltage drop:");

// read  voltage drop from user

scanf("%lf",&vr1);

// print voltage drop

printf("voltage drop is:%0.2lf",vr1);

return 0;

}

Output:

Enter voltage drop:200.4                                                                                                  

voltage drop is:200.40

You might be interested in
There are ____ standard colors for text in a theme.
soldier1979 [14.2K]
In microsoft powerpoint there are 2 or two standard colors for text in a theme. If you use a theme on your presentation, a theme is always equipped with two types of colors for the text, because it gives you more options on what color suits your text and blends with the theme perfectly.
7 0
3 years ago
What is the main difference between Trademarks and Copyrights?
diamong [38]

Answer:

copyrights protect creative or intellectual works, and trademarks apply to commercial names, phrases, and logos

Explanation:

4 0
2 years ago
The location of a radiotelephone sensor is ______________.
Sedaia [141]
The answer is being difficult to detect. A radiotelephone is a communication system for the transmission of the speech on a radio. It is rarely connected with the landline telephone service and other radio services like the GMRS. Hope this answer would help.
8 0
3 years ago
What are some good apps to download to screenshot your screen?
LenaWriter [7]

Answer:

AZ Screen Recorder.

Firefox ScreenshotGo Beta.

Screenshot Touch.

Screen Master.

Most personal assistant apps

7 0
2 years ago
Write an application that calculates the product of a series of integers that are passed to method product using a variable-leng
Gelneren [198K]

Answer:

The method written in C++ is as follows:

#include <iostream>

#include <stdarg.h>

using namespace std;

int prod(int listsnum,...) {

  va_list mylist;

  int product = 1;

  va_start(mylist, listsnum);

  for (int i = 0; i < listsnum; i++)

     product *= va_arg(mylist, int);

   

  va_end(mylist);

  return product;

}

Explanation:

This line defines the method along with the series of integers

int prod(int listsnum,...) {

This declares the variable-length list using va_list as the declaration

  va_list mylist;

This initializes product to 1

  int product = 1;

This initializes the variable-length list

  va_start(mylist, listsnum);

The following iteration calculates the product of the list

  for (int i = 0; i < listsnum; i++)

     product *= va_arg(mylist, int);

   

This ends the the variable-length list

  va_end(mylist);

This returns the product of the list

  return product;

}

To call the method from the main, make use of:

cout<<"Product: "<<prod(4, 2,3,4,5);

The first 4 in the list indicates the number of items in the list while the 4 other items represents the list elements

You can also make use of:

cout<<"Product: "<<prod(2, 6,5);

3 0
2 years ago
Other questions:
  • What is the last step in conducting url search
    11·1 answer
  • A(n) guiiconfatmenu is a list of commands that tell your computer what to do.
    10·2 answers
  • When you enter a two-digit year that is less than 30, Excel changes the year to _____. Question 7 options:
    7·1 answer
  • Assume that play_list refers to a non-empty list, and that all its elements are integers. Write a statement that associates a ne
    7·1 answer
  • What is 9 - 3 ÷ 1/3 + 1 = ?
    9·2 answers
  • ___________ is a computer processor which incorporates the functions of a computer's central processing unit (CPU) on a single i
    15·2 answers
  • A wide variety of "apps" are available to customize devices. Which category of app does word processing software fall into? Ente
    6·1 answer
  • Heyyy ik this isn't a dating site but like is there any guy (12,13,14)that would be willing to date a 13 y/o girl
    6·2 answers
  • What is a case in programming​
    12·1 answer
  • Identify a characteristic that is a disadvantage of cloud-based hosting.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!