Answer:
Following are the program to the given question:
#include<iostream>//defining header file
using namespace std;
float temperatures()//defining a method temperatures
{
int a[10],i,j,n,min,max,sum=0,temp;//defining integer variable
float avg;//defining floating point variable
cout<<"Please input the number of temperatures to be read: ";//print message
cin>>n;//input integer value
if(i>10)//use if to check array length greater than 10
return -1;//return integer value -1
for(j=0;j<n;j++)//defining loop to input value
{
cout<<"Input temperature: "<<endl;//print message
cin>>a[j];//holding value in loop
}
for(i=0;i<n-1;i++)//defining loop to compare array value
{
for(j=i+1;j<n-1;j++)//defining loop to compare array value
{
if(a[i]>a[j])//use if to compare array values
{
//swapping
temp=a[j];//holding array value in temp
a[j]=a[i];//holding value in first index of array
a[i]=temp;//holding temp value
}
}
}
max=min=a[0];//holding max value
for (i = 0; i < n; i++)//defining loop to compare array value
{
if (a[i] > max)//use if to compare max array value
{
max = a[i];//holding max array value
}
else if (a[i] < min)//use else if to compare min array value
{
min = a[i];//holding min array value
}
}
for(i=0;i<n;i++)//use loop to add array value
sum=sum+a[i];//adding array value
avg=(float) sum/n;//calculating avg of the array
std::cout.setf(std::ios::fixed);//using namespace
std::cout.precision(2);//using precision method
cout<<"The average temperature is: "<<avg<<endl;//print avg value with message
cout<<"The highest temperature is: "<<max<<endl;//print max value with message
cout<<"The lowest temperature is: "<<min<<endl;//print min value with message
return avg;//return avg value
}
int main()//defining main method
{
float k;//defining float variable
k=temperatures();//calling method
}
Output:
Please find the attached file.
Explanation:
In this code, a method "temperatures" is declared that defines the integer and float variable in which "n, array" is used to store the array value and inside the method min and max variable is declared that use the conditional statement to store its value.
Outside the main method, a floating-point variable "k" is declared that calls the method and stores its value.
Explain why Thompson's Construction Algorithm is considered to be a proof by induction. Hint: consider what the inductive steps and base cases are. What does Thompson's Construction Algorithm prove
Answer:
We assume that the NFA for the expression S is theorem by using the expressions given below.
Cases as
NFA for empty-expression is ε NFA for symbol is a NFA for union expression is a|b NFA for concatenation expression is ab NFA for Kleene star expression is a*Thompson's Construction Algorithm proves that any expression can be expressions in the NFA's.
_ is a term used for license like those issues by creative commons license as an alternative to copyright
, . , .
Explanation:
'Used for monitoring web activity by users to make sure that sensitive information won't leave the building.
A, Web server
B, FTP server
C, POP server
D, Proxy server
Answer: PROXY
Explanation:
The basic objective of the web server is to store, process and deliver web pages to the users.
FTP server is to allow users to upload and download files. An FTP server is a computer that has a file transfer protocol (FTP) address and is dedicated to receiving an FTP connection. FTP is a protocol used to transfer files via the internet between a server (sender) and a client (receiver)
pop provides access via an Internet Protocol (IP) network for a user client application to a mailbox (maildrop) maintained on a mail server
proxy server is a system that isolates internal clients from the servers by downloading and storing files on behalf of the clients. it intercepts requests for web-based or other resources that come from
Write an algorithm that accepts two numbers,
divide the first number by the second and display the
quotient
What is computer code?
A. Java Script
B. XML
C. HTML
D. Any programming language
Answer:
D
Explanation:
Write an application that inputs a five digit integer (The number must be entered only as ONE input) and separates the number into its individual digits using MOD, and prints the digits separated from one another. Your code will do INPUT VALIDATION and warn the user to enter the correct number of digits and let the user run your code as many times as they want (LOOP). Submit two different versions: Using the Scanner class (file name: ScanP2)
Answer:
The program in Java is as follows:
import java.util.*;
public class Main{
public static void main(String[] args) {
int n, num;
Scanner input = new Scanner(System.in);
System.out.print("Number of inputs: ");
n = input.nextInt();
LinkedList<Integer> myList = new LinkedList<Integer>();
for(int i = 0; i<n;i++){
System.out.print("Input Integer: ");
num = input.nextInt();
while (num > 0) {
myList.push( num % 10 );
num/=10;
}
while (!myList.isEmpty()) {
System.out.print(myList.pop()+" ");
}
System.out.println();
myList.clear();
}
}
}
Explanation:
This declares the number of inputs (n) and each input (num) as integer
int n, num;
Scanner input = new Scanner(System.in);
Prompt for number of inputs
System.out.print("Number of inputs: "); n = input.nextInt();
The program uses linkedlist to store individual digits. This declares the linkedlist
LinkedList<Integer> myList = new LinkedList<Integer>();
This iterates through n
for(int i = 0; i<n;i++){
Prompt for input
System.out.print("Input Integer: ");
This gets input for each iteration
num = input.nextInt();
This while loop is repeated until the digits are completely split
while (num > 0) {
This adds each digit to the linked list
myList.push( num % 10 );
This gets the other digits
num/=10;
}
The inner while loop ends here
This iterates through the linked list
while (!myList.isEmpty()) {
This pops out every element of thelist
System.out.print(myList.pop()+" ");
}
Print a new line
System.out.println();
This clears the stack
myList.clear();
}
Frames control what displays on the Stage, while keyframes help to set up
Answer: A keyframe is a location on a timeline which marks the beginning or end of a transition. So for example, you have a movie and it transitions to another scene, keyframes tell it when and where to start the transition then when and where to stop the transition.
A capacitor of capacitance 102/π µF is connected across a 220 V, 50 Hz A.C. mains. Calculate the capacitive reactance, RMS value of current and write down the equations of voltage and current.
Answer:
The capacitive reactance will be "100Ω" and RMS value of current is "2.2 A". A further explanation is provided below.
Explanation:
Given:
[tex]C =\frac{10^2}{\pi}\times 10^{-6} \ F[/tex]
[tex]V_{RMS}=220 \ V[/tex]
[tex]f = 50 \ Hz[/tex]
Now,
The capacitive reactance will be:
⇒ [tex]X_c=\frac{1}{\omega C} =\frac{1}{2 \pi f C}[/tex]
[tex]=\frac{1}{2\times \pi\times 50\times \frac{10^{-4}}{\pi} }[/tex]
[tex]=100 \ \Omega[/tex]
RMS value of current will be:
⇒ [tex]I_{RMS}=\frac{V_{RMS}}{X_c}[/tex]
[tex]=\frac{220}{100}[/tex]
[tex]=2.2 \ A[/tex]
So that,
⇒ [tex]V_m=220\times \sqrt{2}[/tex]
[tex]=311 \ V[/tex]
⇒ [tex]I_m=2.2\times \sqrt{2}[/tex]
[tex]=3.1 \ A[/tex]
hence,
The equation will be:
⇒ [tex]\nu=311 sin31 \ 4t[/tex]
and,
⇒ [tex]i=3.1 sin(314t+\frac{\pi}{2} )[/tex]
What does the abbreviation BBC stands for?
Answer:
British Broadcasting Corporation Microcomputer System
Explanation:
The British Broadcasting Corporation Microcomputer System, or BBC Micro, is a series of microcomputers and associated peripherals designed and built by the Acorn Computer company in the 1980s for the BBC Computer Literacy Project.
Answer:
British Broadcasting Corporation
Explanation:
This is a UK company which provides television and radio news in over 40 languages. This is the computer related meaning, there are other meanings to the abbreviation but they seem irrelevant in this case.
Hope this information was of any help to you. (:
how to make an app according to peoples will
Answer:
Follow these steps to create your own app:
1)Choose your app name.
2)Select a color scheme.
3)Customize your app design.
4)Choose the right test device.
5)Install the app on your device.
6)Add the features you want (Key Section)
7)Test, test, and test before the launch.
8)Publish your app.
Explanation:
(!!_!!)