Computers and Technology, 11.02.2021 21:10 webbjalia04
Create a new program that will ask a user to enter a number repeatedly. This program will calculate 2 averages based on the sign of the inputted numbers: ave_pos (average of all positive numbers) and ave_neg (average of all negative numbers). The program will stop when the user enters a ‘0’.Before writing the program in C code, write a pseudocode to describe your approach to this problem.
Here are the examples of the output (input is in italic and bold):
Please enter an integer: 1
Please enter an integer: -1
Please enter an integer: 2
Please enter an integer: -2
Please enter an integer: 0
Positive average: 1
Negative average: -1
Please enter an integer: -1
Please enter an integer: -2
Please enter an integer: -3
Please enter an integer: 0
Negative average: -2
Answers: 3
Computers and Technology, 22.06.2019 01:00
What is added to the < meta > tag to describe the encoding type?
Answers: 2
Computers and Technology, 22.06.2019 09:00
Designing a mobile web page is a little different from designing a regular web page. name at least three features that should be considered when designing a website that is mobile phone-friendly, and briefly explain why they are important.
Answers: 1
Computers and Technology, 23.06.2019 09:30
:you areto design the controller for alight that functions both as an ordinary light and also as a motion activated light and alarm. a.if the manual switch s is on, then the light l is on. b.besides the manual switch, there is a motion detector, m1, which activatesthis light.c.if motion is detected but the light is on anyway because s is on, only then a secondoutput a, an alarm, is turned on. d.the disable switch, d, disables the motion activated light and alarmbut leaves manual control operation of the light using switch s.(i)read the problem statement and clearly identify the inputs and outputs for the circuit you are designing. (ii)create the truth table for this system; include the light, alarm, switch, disable, and the motion sensor.(iii)draw a schematic of this system.
Answers: 1
Computers and Technology, 24.06.2019 13:30
Write a program that uses a two-dimensional array to store the highest and lowest temperatures for each month of the year. the program should output the average high, average low, and the highest and lowest temper- atures for the year. your program must consist of the following functions: a. function getdata: this function reads and stores data in the two- dimensional array. b. function averagehigh: this function calculates and returns the average high temperature for the year. c. function averagelow: this function calculates and returns the aver- age low temperature for the year. d. function indexhightemp: this function returns the index of the highest high temperature in the array. e. function indexlowtemp: this function retur
Answers: 3
Create a new program that will ask a user to enter a number repeatedly. This program will calculate...
Mathematics, 03.07.2019 21:40
English, 03.07.2019 21:40
Computers and Technology, 03.07.2019 21:40
Mathematics, 03.07.2019 21:40
Mathematics, 03.07.2019 21:40
English, 03.07.2019 21:40
Physics, 03.07.2019 21:40