Answer:
Using python
num_boys = int(input("Enter number of boys :"))
num_girls = int(input("Enter number of girls :"))
budget = int(input("Enter the number of dollars spent per school year :"))
try:
dollarperstudent = budget/(num_boys+num_girls)
print("Dollar spent per student : "+str(dollarperstudent))#final result
except ZeroDivisionError:
print("unavailable")
Answer: 1766.667 Ω = 1.767kΩ
Explanation:
V=iR
where V is voltage in Volts (V), i is current in Amps (A), and R is resistance in Ohms(Ω).
3mA = 0.003 A
Rearranging the equation, we get
R=V/i
Now we are solving for resistance. Plug in 0.003 A and 5.3 V.
R = 5.3 / 0.003
= 1766.6667 Ω
= 1.7666667 kΩ
The 6s are repeating so round off to whichever value you need for exactness.
Answer: 0.95 inches
Explanation:
A direct load on a column is considered or referred to as an axial compressive load. A direct concentric load is considered axial. If the load is off center it is termed eccentric and is no longer axially applied.
The length= 64 inches
Ends are fixed Le= 64/2 = 32 inches
Factor Of Safety (FOS) = 3. 0
E= 10.6× 10^6 ps
σy= 4000ps
The square cross-section= ia^4/12
PE= π^2EI/Le^2
6500= 3.142^2 × 10^6 × a^4/12×32^2
a^4= 0.81 => a=0.81 inches => a=0.95 inches
Given σy= 4000ps
σallowable= σy/3= 40000/3= 13333. 33psi
Load acting= 6500
Area= a^2= 0.95 ×0.95= 0.9025
σactual=6500/0.9025
σ actual < σallowable
The dimension a= 0.95 inches
Answer:
b)False
Explanation:
A battery is a device which store the energy in the form of chemical energy.And this stored energy is used according to the requirement.So battery is not a electromechanical device.Because it does have any mechanical component like gear ,shaft flywheel etc.
A flywheel is known as mechanical battery because it stored mechanical energy and supply that energy when more energy is required.Generally fly wheel is used during punching operation.
Answer:
Program that removes all spaces from the given input
Explanation:
// An efficient Java program to remove all spaces
// from a string
class GFG
{
// Function to remove all spaces
// from a given string
static int removeSpaces(char []str)
{
// To keep track of non-space character count
int count = 0;
// Traverse the given string.
// If current character
// is not space, then place
// it at index 'count++'
for (int i = 0; i<str.length; i++)
if (str[i] != ' ')
str[count++] = str[i]; // here count is
// incremented
return count;
}
// Driver code
public static void main(String[] args)
{
char str[] = "g eeks for ge eeks ".toCharArray();
int i = removeSpaces(str);
System.out.println(String.valueOf(str).subSequence(0, i));
}
}