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
timama [110]
4 years ago
5

Which of the following formulas would you use to calculate the power requirements of an electrical load? 

Computers and Technology
1 answer:
Wittaler [7]4 years ago
3 0
<span>Your Answer is c: P = E/R</span>
You might be interested in
write a program that generates 100 random integrs between 0 and 9 and displays the count for each number. (Hint: Use (int) (math
Nataly_w [17]

Answer: The java program to generate 100 random numbers and count their occurrence is shown below.

import java.util.Random;

import java.util.*;

public class MyClass {

   public static void main(String args[]) {

     int[]count = new int[10];

// temporarily stores the randomly generated number

     int num;

     for(int i=0; i<10; i++)

     {

// initialize count of all digits from 0 to 9 to zero

           count[i] = 0;

     }

     for(int i=0; i<100; i++)

     {

// generates 100 random numbers or integers from 0 through 9

           num = (int) (Math.random() * 10);

           for(int j=0; j<10; j++)

           {

// compare each randomly generated number with digits from 0 to 9 and increment their count accordingly

               if(num == j)

                   count[j] = count[j]+1;

           }

     }

     System.out.println("The count of randomly generated numbers is shown below.");

     for(int i=0; i<10; i++)

     {

           System.out.println("Count of "+i+" is "+ count[i]);

     }

   }

}

OUTPUT

The count of randomly generated numbers is shown below.

Count of 0 is 10

Count of 1 is 8

Count of 2 is 13

Count of 3 is 10

Count of 4 is 9

Count of 5 is 13

Count of 6 is 7

Count of 7 is 11

Count of 8 is 9

Count of 9 is 10

Explanation: This program declares an integer array of size 10 and initializes it to 0.

Random numbers are generated as shown. The number is randomly generated in an outer for loop with executes 100 times for 100 numbers.

(int) (Math.random() * 10)

The package java.util.Math is imported to serve the purpose.

The above code generates random numbers which can be floating numbers. The integer part is extracted using (int).

This yields the digits from 0 through 9.

For every occurrence of digits from 0 to 9, the count of the index of the respective digit is incremented.

To serve this purpose, inner for loop is implemented. The variable used in this loop is compared with the random number and index of count incremented accordingly. The inner for loop runs 10 times at the maximum, in order to match random number with 0 through 9.

Lastly, the occurrence of every digit from 0 to 9 is displayed.

8 0
4 years ago
Pleaseeeeee helppppp meeeeeeee<br>Tomorrow is my examination.​<br>Please don't ignore.
Scorpion4ik [409]

Answer:

Floppy disk

Pendrive

sd card

CD

Router

Explanation:

<h2>Hope it is helpful</h2>
3 0
3 years ago
Consider a geographical area divided (for mobile phone coverage purposes) into 36 hexagonal cells, without gaps or overlaps betw
ratelena [41]
<span>Functions themselves are formulas that when plugged in, give a certain pattern of y values. Microsoft Excel can be programmed to do just that.</span>
7 0
4 years ago
Some gamers will use in their system to get more speed
Phoenix [80]
Graphic Card upgrade will ensure a considerable enhancement.
5 0
4 years ago
Read 2 more answers
Write a program to check if two strings are different by one and only one character (when checked character by character). For e
Elis [28]

<u>C program to check if two strings are different by one and only one character</u>

#include<stdio.h>            

#include<string.h>    

//driver function        

int main()

{

   int result;  

char f_string[100],s_string[100];  /* Declaring  f_string and s_string as strings*/

 

printf("Enter the first string : \n");   // Taking inputs from user

  scanf("%s",f_string);                  

   printf("Enter the second string : \n"); //

  scanf("%s",s_string);                      

  int l1 = strlen(f_string);      // calculating length of strings

  int l2 = strlen(s_string);      

  int difference = 0;           // For storing the count difference in strings    

  if(l1==l2)           // Checking lengths of string

  {

      for(int i=0;i<l2;i++)    

            {

                if(f_string[i] !=s_string[i])   /*checking each character of f_string with the same character index of s_string*/

          difference++;           // updating the count difference

      }        

  }

  result=difference;

  if(result==1)               // if there is only one character difference

  printf("The two strings are replaced by one character");    

  else                        

 printf("The two strings are not replaced by one character");        

}

<u>Output</u>

Enter the first string :  lake

Enter the second string :  bake

The two strings are replaced by one character

Enter the first string :  pal

Enter the second string :  pale

The two strings are not replaced by one character

Enter the first string :  bus

Enter the second string :  bit

The two strings are not replaced by one character

Enter the first string :  kite

Enter the second string :  bit

The two strings are not replaced by one character

6 0
3 years ago
Other questions:
  • While engineers work to create computers that can understand us emotionally, ________ are also evolving toward a more human appe
    12·1 answer
  • Where are Micro USB connectors used the most?
    11·2 answers
  • What role does technology have in relationship to nuclear?
    12·1 answer
  • Help with some questions. Thank you!
    14·1 answer
  • You are given a class named Clock that has one int instance variable called hours.
    14·1 answer
  • Which is the last step in conducting a URL search?
    14·2 answers
  • Edhesive intro to cs term 2 8.9 practice
    13·2 answers
  • List any two programs that are required to play multimedia products
    8·1 answer
  • Test if the word mold is stored in the variable word. Computer science.
    9·1 answer
  • Live footage refers to:
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!