Express it in standard form and apply the basic indices laws to simplify
Answer:
Without Recursives
// Program is written using C++
// Comments are used for explanatory purpose
int main()
{
// Declare integer number, n
int n;
cout<<"Enter number of starts to print"
cin>>n;
// Iterate through to print * pattern
for(i=n; i>0;i--)
{
for(j=n; i>j-1;j--)
{
cout<<"*";
}
cout<"\n";
}
for(i=0; i< n; i++)
{
for(j=0;j<=i;j++)
{
cout<<"*";;
}
cout<"\n";
}
return 0;
}
Using Recursive
#include <iostream>
using namespace std;
void printStars(int lines);
int main()
{
// prompt the user to enter a number
int lines;
cin>> lines;
printStars(int lines);
return 0;
}
void printStars(int lines)
{
if (lines < 1)
return;
// to print the stars of a particular row
if (i <= lines)
{
cout << "* ";
// recursively print rest of the stars
// of the row
printPatternRecur(lines, i + 1);
}
else
{
// change line
cout << endl;
// print stars
printPatternRecur(lines-1, 1);
}
}
Answer:
A. R
Explanation:
There are basically two wires that supply input power to the thermostat namely the C wire which is the common wire and the R wire .The G wire simply completes the input power circuit from the R-leg of the power supply.On the another hand the Y wire also completes the circuit from the compressor fan contactor to the R-leg of the power supply . While the W wire completes the path to the heater contactor coil.
Answer:
125 cm³/min
Explanation:
The material rate of removal is usually given by the formula
Material Rate of Removal = Radial Depth of Cut * Axial Depth of Cut * Feed Rate, where
Radial Depth of Cut = 25 mm
Axial depth of cut = 200 mm
Feed rate = 25 mm/min
On multiplying all together, we will then have
MRR = 25 mm * 200 mm * 25 mm/min
MRR = 125000 mm³/min
Or we convert it to cm³/min and have
MRR = 125000 mm³/min ÷ 1000
MRR = 125 cm³/min