An outdoor temperature monitoring application is given below:
package pack10;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter daily high temperature readings (in Fahrenheit) ");
int input;
int numDays=0;
int highTemp=-999;
int lowTemp=999;
double average=0;
while(true) {
System.out.print("Enter temperature : ");
input = sc.nextInt();
if(input==555) {
break;
}
if(input<-20 || input>120) {
System.out.println("Error!!! Please enter temperatur in range -20 to 120 exclusive");
}else {
numDays++;
if(input>highTemp) {
highTemp = input;
}
if(input<lowTemp) {
lowTemp = input;
}
average += input;
}
}
System.out.println("Number of days the temperature entered : "+numDays);
System.out.println("The minimum temperature is : "+lowTemp);
System.out.println("The maximum temperature is : "+highTemp);
average/=numDays;
System.out.println("The average of the temperature is : "+average);
}
}
What is a program?A computer program is a set of instructions written in a programming language that a computer can execute. Software includes computer programs as well as documentation and other intangible components. Source code refers to a computer program in its human-readable form.
The outdoor temperature monitoring application that allows a user to keep entering daily high temperature readings is illustrated above.
Read more about programming here:
https://brainly.com/question/23275071
#SPJ1`
So I'm doing a coding project again and I have to recreate a website I'm having difficulty getting my website to look like the one I'm recreating I have put a screenshot of the website I need I recreate and a picture of the code I have so far
HTML and CSS tutorials
Explanation:
Search for website tuturials
Question 7 of 10
is a rate that charges interest on the interest that accumulates on debt.
O A. Simple interest
OB. Variable interest
O C. Principal interest
OD. Compound interest
SUBMIT
Compound interest is a rate that charges interest on the interest that accumulates on debt.
What is an interest?
Interest is the payment of an amount above the principal sum by a borrower or deposit-taking financial institution to a lender or depositor at a specific rate. It differs from a fee that the borrower may pay to the lender or a third party. It is also distinct from a dividend, which is paid by a company to its shareholders (owners) from its profit as well as reserve, but not at a fixed rate, but rather on a pro rate basis as a share of the reward gained by risk-taking entrepreneurs when revenue exceeds total costs.
When interest is compounded on the principal amount invested as well as borrowed, the interest rate is applied to the new (larger) principal. It's essentially interest on interest, which leads to exponential growth over time.
So, D is the right answer.
To learn more about interest
https://brainly.com/question/16134508
#SPJ9
I would like to create crossword puzzles in Java. Two 4X4 and two 6X6 puzzles. How do I go about it?
One of the ways to create crossword puzzles in Java using GUI is given below:
The Programimport java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Random;
The program is attached in the file below as the profanity counter is rejecting the code here, so I cannot post it here.
Read more about java programming here:
https://brainly.com/question/18554491
#SPJ1
Write a program to display the s
tandard/deviation of 100 sets of numbers already stored in an array
import random
import statistics
number = [1, 2, 3, 4, 5]
print("Standart deviation is: ", statistics.stdev(number))
Please edit the array before compiling the code.
Discuss in brief the major of components of computer network?
The major components required to install software are computer network components. NIC, switch, cable, hub, router, and modem are all important network components. Some network components can be removed depending on the type of network that needs to be installed. A wireless network, for example, does not require a cable.
The following are the major components needed to set up a network:
1)NIC: NIC is an abbreviation for network interface card. A network interface card (NIC) is a piece of hardware that connects one computer to another on a network. It has a transfer rate range of 10,100 to 1000 Mb/s.
2)Hub: A hub is a piece of hardware that divides a network connection among multiple devices. When a computer requests information from a network, it first sends the request via cable to the Hub. This request will be broadcast to the entire network by Hub.
3)Switch:A switch is a piece of hardware that connects multiple devices on a computer network. A Switch has more sophisticated features than a Hub.
4)Router: A router is a piece of hardware that connects a local area network (LAN) to the internet. It receives, analyses, and forwards incoming packets to another network. A router operates on the OSI Reference Model's Layer 3. A router routes a packet based on the information in the routing table.
5)Modem: A modem is a piece of hardware that allows a computer to connect to the internet via an existing telephone line. A modem is not built into the motherboard; rather, it is installed in a PCI slot on the motherboard.
6)Cables: A cable is a type of signal transmission medium.
What is computer network?
A computer network is a group of computers that share resources on or provided by network nodes.
To learn more about computer network
https://brainly.com/question/1167985
#SPJ9