1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Whitepunk [10]
3 years ago
12

Retype the statements, correcting the syntax error in each print statement. print('Predictions are hard.") print(Especially abou

t the future.) user_num = 5 print('user_num is:' user_num)
Engineering
1 answer:
marshall27 [118]3 years ago
3 0
Print(‘Predictions are hard’)
print(‘Especially about the future’)
user_num = 5
print(‘user_num is:’+str(user_num))

There are many ways to do the last print. Look up string interpolation
You might be interested in
A beam has been fixed to the floor by the pin at B and the roller at A as shown in figure 1 below.​
ahrayia [7]
What figure below???
3 0
3 years ago
Write a C++ program to display yearly calendar. You need to use the array defined below in your program. // the first number is
ddd [48]

Answer:

//Annual calendar

#include <iostream>

#include <string>

#include <iomanip>

void month(int numDays, int day)

{

int i;

string weekDays[] = {"Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"};

// Header print

      cout << "\n----------------------\n";

      for(i=0; i<7; i++)

{

cout << left << setw(1) << weekDays[i];

cout << left << setw(1) << "|";

}

cout << left << setw(1) << "|";

      cout << "\n----------------------\n";

      int firstDay = day-1;

      //Space print

      for(int i=1; i< firstDay; i++)

          cout << left << setw(1) << "|" << setw(2) << " ";

      int cellCnt = 0;

      // Iteration of days

      for(int i=1; i<=numDays; i++)

      {

          //Output days

          cout << left << setw(1) << "|" << setw(2) << i;

          cellCnt += 1;

          // New line

          if ((i + firstDay-1) % 7 == 0)

          {

              cout << left << setw(1) << "|";

              cout << "\n----------------------\n";

              cellCnt = 0;

          }

      }

      // Empty cell print

      if (cellCnt != 0)

      {

          // For printing spaces

          for(int i=1; i<7-cellCnt+2; i++)

              cout << left << setw(1) << "|" << setw(2) << " ";

          cout << "\n----------------------\n";

      }

}

int main()

{

int i, day=1;

int yearly[12][2] = {{1,31},{2,28},{3,31},{4,30},{5,31},{6,30},{7,31},{8,31},{9,30},{10,31},{11,30},{12,31}};

string months[] = {"January",

"February",

"March",

"April",

"May",

"June",

"July",

"August",

"September",

"October",

"November",

"December"};

for(i=0; i<12; i++)

{

//Monthly printing

cout << "\n Month: " << months[i] << "\n";

month(yearly[i][1], day);

if(day==7)

{

day = 1;

}

else

{

day = day + 1;

}

cout << "\n";

}

return 0;

}

//end

3 0
4 years ago
La base de los tema relacionados a las ciencia de las ingeniería es?
Yanka [14]

Answer:

La ciencia y la ingeniería conciben el mundo como comprensible, con reglas que gobiernan su funcionamiento y que a través de un estudio cuidadoso y sistemático se puede evidenciar mediante patrones consistentes que permitan la oportunidad de examinar las características fundamentales que mejor describen los fenómenos.

Explanation:

5 0
3 years ago
What is the function rule for the line? f(x)=−32x−2f(x)=−23x−2f(x)=32x−2f(x)=−32x+2A coordinate grid with x and y axis ranging f
murzikaleks [220]

Answer:

f(x)=23x−2

Explanation:

still trying to figure that out

7 0
3 years ago
A binary geothermal power plant uses geothermal water at 160°C as the heat source. The cycle operates on the simple Rankine cycl
bogdanovich [222]

A binary geothermal power operates on the simple Rankine cycle with isobutane as the working fluid. The isentropic efficiency of the turbine, the net power output, and the thermal efficiency of the cycle are to be determined

Assumptions :

1.  Steady operating conditions exist.

2.  Kinetic and potential energy changes are negligible.

Properties:  The specific heat of geothermal water ( c_{geo}[) is taken to be 4.18 kJ/kg.ºC.  

Analysis (a) We need properties of isobutane, we can obtain the properties from EES.

a. Turbine

PP_{3} = 3.25mPa = (3.25*1000) kPa\\= 3250kPa\\from the EES TABLE\\h_{3} = 761.54 kJ/kg\\s_{3} = 2.5457 kJ/kg\\P_{4} = 410kPa\\\\s_{4} = s_{3} \\h_{4s} = 470.40kJ/kg\\\\T_{4} = 179.5^{0} C\\\\h_{4} = 689.74 kJ/KG\\\\ The  isentropic  efficiency, n_{T} = \frac{h_{3}-h_{4}  }{h_{3}- h_{4s} }

==\frac{761.54-689.74}{761.54-670.40} \\=\frac{71.8}{91.14} \\=0.788

b. Pump

h_{1} = h_{f} @ 410kPa = 273.01kJ/kg\\v_{1} = v_{f} @ 410kPa = 0.001842 m^{3}/kgw_{p,in} =  \frac{v_{1}(P_{2}-P_{1})   }{n_{p} } \\\\= \frac{0.01842(3250-410)}{0.9} \\\\ =5.81kJ/kg\\h_{2} =h_{1} + w_{p,in}\\          = 273.01+5.81\\           = 278.82 kJ/kg\\\\w_{T,out} = m^{.}  (h_{3} -h_{4} )\\=(305.6)(761.54-689.74)\\=305.6(71.8)\\=21,942kW\\\\

W^{.} _ {P,in} = m^{.} (h_{2} -h_{1}) \\=m^{.}  w_{p,in \\=305.6(5.81)\\\\=1,777kW\\W^{.}  _{net} = W^{.} _{T, out} - W^{.}  _{P,in} \\= 21,942-1,777\\=20,166 kW\\\\HEAT EXCHANGER\\\\Q_{in} = m^{.} _{geo} c_{geo} (T_{in-T_{out} } )\\=555.9(4.18)(160-90)\\=162.656kW\\

c. The thermal efficiency of the cycle  n_{th}  =\frac{W^{.} _{net} }{Q^{._{in} } } \\\\= \frac{20,166}{162,656} \\=0.124\\=12.4%

7 0
4 years ago
Read 2 more answers
Other questions:
  • How many types of engineering specialist are there?
    14·1 answer
  • A small pad subjected to a shearing force is deformed at the top of the pad 0.12 in. The heigfit of the pad is 1.15 in. What is
    7·1 answer
  • A thick steel slab ( 7800 kg/m3, 480 J/kg·K, 50 W/m·K) is initially at 300°C and is cooled by water jets impinging on one of its
    14·2 answers
  • Technician A says if the input signal turn-on time is too fast for the input circuit, your program may operate as though the inp
    11·1 answer
  • What is wrong with the following code?<br> 6<br> print (what is your name?)
    9·2 answers
  • Witch one is cuter compared to ur opinion calico kitten or grey?​
    5·1 answer
  • In the situation shown below, what would the Moon look like from Earth? Sun, Earth and Moon Four Moon Views A. View A B. View B
    8·1 answer
  • Technician A that shielding gas nozzles may have different shapes. Technician B says that gelding gas nozzles is attached to the
    8·1 answer
  • Guyss I seriously and urgently need help what are the steps to build a headgear ??​
    5·2 answers
  • A 1.9-mm-diameter tube is inserted into an unknown liquid whose density is 960 kg/m3, and it is observed that the liquid rises 5
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!