Question

by using fortran.90 solve the question below... -the power (watts) and the voltage (volts) the current...

by using fortran.90 solve the question below...

-the power (watts) and the voltage (volts) the current (amps) drawn in a circuit can be
found from: Current= (Power)/ (Voltage).By using Select Case, write a program that calculates the current given the power of 50 devices (remember that the voltage is 240v in the UK) and displays the most suitable cable for use. Consider 3 suitable cables (1.5 mm2 for up to 5 amps, 2.5 mm2 for up to 13 amps, and 4 mm2 for up to 30 amps). In case a suitable cable cannot be found the program should print an appropriate message.

Homework Answers

Answer #1
program findcable
  implicit none
  Real           :: power, current   !variable to hold power value and current 
  Real   :: cabletype  ! variable to hold the result
  

  print*,"Enter the power value"   !taking input from user
  read (*) power
  

current= power/240 ! calculating current

select case (current)         ! applying cases on the current value
   
      case (0:5) 
         cabletype=1.5

      case (5:13)
         cabletype=2.5

      case (13:30) 
         cabletype=4

      case default
         print*, "Cannot suggest the cable type." 
      
   end select
   
   print*, "The cable (in mm2) to be used is:", cabletype            ! printing results
end program findcable
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
by using fortran.90 solve this question... the pH of an aqueous solution is a measure of...
by using fortran.90 solve this question... the pH of an aqueous solution is a measure of its acidity. The pH scale ranges from 0 to 14, inclusive. A solution with a pH of 7 is said to be neutral, a solution with a pH greater than 7 is basic, and a solution with a pH less than 7 is acidic. Write a program that will read value of pH of a solution, and will print whether it is neutral, basic,...
a) A student measured the voltage across and current through an aluminum wire using a voltmeter...
a) A student measured the voltage across and current through an aluminum wire using a voltmeter and ammeter. The power supply was a battery. Sketch the circuit and how the student attached the meters to make her measurements. b) Here is the student's data: (0, 0), (1.01, 0.35), (1.49, 0.80), (2.67, 1.10), (3.00, 1.35). Each datum is given as a (volts, amps) pair. Make a scatter plot of current versus voltage. Label your axes appropriately. Find the best estimate of...
Question 1 1. Nonutility power producers (companies that don’t own transmission lines) use a lot more...
Question 1 1. Nonutility power producers (companies that don’t own transmission lines) use a lot more natural gas than traditional utilities. Group of answer choices True False Flag this Question Question 2 2. Most of your electric bill is from the transmission and generation of electric power, and not from its production. Group of answer choices True False Flag this Question Question 3 3. Alternating current is used in homes, and direct current is used in cars. Group of answer...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT