Answer:
//This Program is written in C++
// Comments are used for explanatory purpose
#include <iostream>
using namespace std;
enum mailbox{open, close};
int box[149];
void closeAllBoxes();
void OpenClose();
void printAll();
int main()
{
closeAllBoxes();
OpenClose();
printAll();
return 0;
}
void closeAllBoxes()
{
for (int i = 0; i < 150; i++) //Iterate through from 0 to 149 which literarily means 1 to 150
{
box[i] = close; //Close all boxes
}
}
void OpenClose()
{
for(int i = 2; i < 150; i++) {
for(int j = i; j < 150; j += i) {
if (box[j] == close) //Open box if box is closed
box[j] = open;
else
box[j] = close; // Close box if box is opened
}
}
// At the end of this test, all boxes would be closed
}
void printAll()
{
for (int x = 0; x < 150; x++) //use this to test
{
if (box[x] = 1)
{
cout << "Mailbox #" << x+1 << " is closed" << endl;
// Print all close boxes
}
}
}
Explanation:
Draw isometric projection Spatial axes of the item are represented as similarly willing to the drawing floor and same distances alongside the axes are drawn the same.
<h3>What is isometric projection?</h3>
Definition of isometric projection an axonometric projection wherein the 3 spatial axes of the item are represented as similarly willing to the drawing floor and same distances alongside the axes are drawn same.
An isometric view of an item may be received via way of means of selecting the viewing path such that the angles among the projections of the x, y, and z axes are all of the same, or 120°. For example, with a cube, that is achieved via way of means of first searching immediately toward one face.
Read more about the data:
brainly.com/question/25749514
#SPJ1
Answer and Explanation:
The heat engine are used for converting the heat energy into mechanical energy .When heat energy is converted into mechanical energy then this mechanical energy are used to do the useful work. Heat engine working based on the three process that are head addition , expansion and heat rejection.
Answer:
a) The mass flow rate is 19.71 kg/s
b) The inlet area is 0.41 m²
c) The thrust power is 333.31 kW
d) The propulsive efficiency is 26.7%
Explanation:
Please look at the solution in the attached Word file.