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
If a disk drive has 8 surfaces and there are 1024 tracks per surface with 256 sectors per track and 512 bytes/sector. What is th
Elza [17]

Answer:

The capacity of the drive in Gigabytes equals 1.0737 Gbs

Explanation:

Given there are 1024 tracks per surface.

Number of surfaces = 8

Hence number of tracks in 8 surfaces equals 1024\times 8=8192 tracks

Now it is given that there are 256 sectors per track thus the number of sectors in 8192 tracks equals 8192\times 256=2097152 sectors

Now it is given that there are 512 bytes per sector thus the number of bytes in 2097152  equals 2097152\times 512=1073741824 bytes

Converting to gigabytes the capacity of the drive in gigabytes equals 1.0737Gbs

5 0
3 years ago
Adios brainly, you were sh.t sometimes, but you had your moments, wont be posting that much take my points away i d c
svlad2 [7]

you got a bad day today, bud?

3 0
3 years ago
Read 2 more answers
What type of address is the ip address 198.162.12.254/24?
grigory [225]
<span>The IP address 198.162.12.254/24 is a </span>Unicast address.
4 0
3 years ago
As we move up a energy pyrimad the amount of a energy avaliable to each level of consumers
AleksandrR [38]

Explanation:

As it progresses high around an atmosphere, the amount of power through each tropic stage reduces. Little enough as 10% including its power is passed towards the next layer at every primary producers; the remainder is essentially wasted as heat by physiological activities.

8 0
3 years ago
Elizabeth works for a local restaurant At the end of her shift, she is required
eimsori [14]

Answer:

write the time she arrived at the job and the time she left

Explanation:

6 0
4 years ago
Read 2 more answers
Other questions:
  • What type of multimedia is a game CD? Game CDs are examples of ___ multimedia.
    15·2 answers
  • What should a system administrator use to disable access to a custom application for a group of users?
    5·1 answer
  • What is an identifier? Give an example of an identifier.
    13·1 answer
  • Write a Python program that asks the user for a positive, odd value. Once the value is validated determine if the number is Prim
    11·1 answer
  • Question 21 pts How many lines should an email signature be? Group of answer choices "5 to 6" "7 to 8" "1 to 2" "3 to 4"
    10·1 answer
  • If you are Rich In adopt me friend me And give me pets Please
    5·2 answers
  • How do you think Beyoncé choreography has/will influence the future of dance?
    9·2 answers
  • Can someone please help me with this ,it is my assignment of technology and agriculture year 8
    5·1 answer
  • Задание: Построить иерархию классов в соответствии с вариантом задания. Построить диаграммы классов.
    8·1 answer
  • You can use the ____ method to search a string to determine whether it contains a specific sequence of characters.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!