Answer:
int main()
{
int speed = 25, time = 15;
int distance = speed * time;
cout<<"The distance is: " << distance <<endl;
return 0;
}
Explanation:
- Initialize the variable <em>speed</em> as 25 and <em>time</em> as 15
- Calculate the <em>distance</em> by multiplying <em>speed</em> and <em>time</em>
- Print the <em>distance</em>
Answer:
See Explaination
Explanation:
package testscores;
import java.util.ArrayList;
import java.util.List;
public class TestScores {
public List<Integer> scorearray=new ArrayList<>();
public TestScores(List<Integer> scores) throws InvalidTestScore{
this.scorearray=scores;
for(int i=0;i<scorearray.size();i++){
if(scorearray.get(i)>100 || scorearray.get(i)<0){
throw new InvalidTestScore(this.scorearray.get(i));
}
}
}
public double average(){
int tot=0;
for(int i=0;i<this.scorearray.size();i++){
tot=tot+this.scorearray.get(i);
}
return tot*(1.0)/(this.scorearray.size());
}
class InvalidTestScore extends Exception
{
private double amount;
public InvalidTestScore(int Score)
{
System.out.println("Invalid Score "+Score);
}
}
}
Explanation:
in fourth generation microprocessor was developed.
may it helped u
Answer:
Option A) Demand for CDs has decreased, causing equilibrium price and quantity to decrease.
is the correct answer.
Explanation:
- File-sharing is a common practice nowadays. It helps us by providing access to different files (audio , video, images, documents) to others in a faster way.
- A wide range of files are shared daily by using different means of file-sharing including computer networks and peer-to-peer networking.
- Formerly, the data was shared using CDs but now this system has been replaced with the advent of internet.
- Usage of CDs is dropped drastically and hence their demand is decreased.
- So now the prices of CDs are not in equilibrium and their quantity is also decreased.
i hope it will help you!
Electrical pressure is also known as voltage.
I hope this helps you! :-)