Determine whether number divided evenly can be accomplished

Assignment Help Electrical Engineering
Reference no: EM13251182

Write a program which takes a number from the user as an input and determines whether the number is prime. A prime number is a number which can only be divided evenly by 1 and itself. (Hint: determining whether the number divided evenly can be accomplished by determining if there is a remainder). Implement the program using a for loop for the calculations. Additional hint: a break in the loop can make the program simpler, though it is not required.

Reference no: EM13251182

Questions Cloud

Compute the ph of the solutions with the given [h+] or [oh] : Calculate the pH of the following solutions with the given [H+] or [OH-] and indicate whether the solution is acidic or basic
Determine the flux per pole in the machine : A permanent magnet dc motor has two poles and a simplex lap winding of 18 loops and 3 turns per loop. The armature radius is 4 cm and the armature length is 15 cm. The flux density under the poles is 0.74 T.
Find water pressure and speed at the second floor : A water pipe having a 2.96 cm inside diameter carries water into the basement of a house at a speed of 0.804 m/s, find water pressure and speed at the second floor
Write program which accept frequency of electromagnetic wave : Write a program which accepts the frequency of an electromagnetic wave in megahertz and then displays to the user whether the frequency falls in the FM band, AM band, or neither.\FM radio falls between: 87.7 to 108.0 MHz.
Determine whether number divided evenly can be accomplished : determining whether the number divided evenly can be accomplished by determining if there is a remainder. Implement the program using a for loop for the calculations. Additional hint: a break in the loop can make the program simpler, though it is ..
What is the rate at which water flows out : A cylindrical tank with a large diameter is filled with water to a depth D = 0.310 m. What is the rate at which water flows out, in cubic meters per second
Calculate the process capability index for this example : A metal fabricator produces connecting rods with an outer diameter that has 1 +/- .01 inch specification. A machine operator takes several sample measurements over time and determines the sample mean outer diameter to be 1.002 inches with a standa..
Find out the energy change for an acid-base reaction : Suppose that the calorimeter shown here was used to determine the energy change for an acid-base reaction. An acid/base reaction solution was made by combining 150 mL of 0.5 M HCl of 50 mL of 1.00 M NaOH, to make 200.0g of solution
What is the specific heat of copper : Students in a physics lab are to determine the specific heat of copper experimentally. They place 0.150 kg of copper shot into boiling water, what is the specific heat of copper

Reviews

Write a Review

Electrical Engineering Questions & Answers

  The condition on the sampling period is determined

Finding the periodicity in N of the discrete time signal x(n) = Cos(3pi*Ts.n + pi/4) and then plotting the discrete signal. From this the condition on the sampling period is determined

  Explain moore sequential circuit

Moore sequential circuit, A Moore sequential circuit has one input and one output.The output goes to 1 when the input sequence 111 has occurred and the output goes to 0 if the input sequence

  Design circuit that takes sinusoidal input of varying freq

Design a circuit that takes a sinusoidal input of varying frequency at 1V amplitude and produces an output amplitude of approximately 1V when the frequency is 1 Hz and approximately 0.5V when the frequency is 1,000Hz.

  Explain the two possible frequencies

What are the two possible frequencies to which the local oscillator could be set? What bandwidth should the 10.7 MHz IF amplifier have?

  Define energy of a moving charge

Energy of a moving charge, A region in space has an Electric field given by E = x(x^) - y(y^) + xy(z^) where (x^), (y^), (z^) indicate corresponding letter with caret on top of it.

  What approximate minimum ber is required for voice signals

What approximate minimum BER is required for voice signals, data signals and what is the approximate BER level for the optical fiber systems ?

  What is the generated fis editor in matlab

Develop with MATLAB, a fuzzy control system for controlling the power of a motor (0-350 rpm) based on the supported load (0-1700 lbs) thereby that at greater load develops more power. The system must contain at least 5 rules, but preferably 7.

  What is the critical angle for the light beam

a) Given that the refractive index of water is about 1.33, what is the polarization angle for light traveling in air and reflected from the surface of water b) Consider a diver in sea pointing a flashlight towards the surface of the water.

  Find line and load voltages n turns ratio and total apparent

A ideal transformer is rated at 4800/480 volt, at 75KVA. it is connected as a step down auto transformer. find the line and load voltages, turns ratio and total apparent, real and reactive power at full load and at 60% rated load at a power factor..

  How the parameter t influences the position of the curve

Consider an LTI system with impusle response h(t) = e^(-.2t)*(u(t-1)-u(tt-8)) a) plot h(t - tau) for various values, make sure you show how the parameter t influences the position of the curve in the graph. b)Find the output y when the input is x(t) ..

  Find if circuit overdamped-underdamped or critically damped

A 200 resistor, a 10 mH inductor and a 4.7 µF capacitor are connected in a series circuit. a. Is the circuit overdamped, underdamped, or critically damped b. Write the characteristic equation and find the poles of this circuit.

  Calculate the voltage and current ratings of thyristors

A controlled three-phase six-pulse AC/DC converter is supplied with 60 Hz voltage of the line-to-ground RMS value U = 240 V with the output current ideally filtered by an inductor. The maximum DC power of the converter (Pd)max = 50 kW.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd