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
Marta_Voda [28]
3 years ago
7

Create a Python program that will produce the following output:

Engineering
1 answer:
Aloiza [94]3 years ago
6 0

Answer:

def main ():

   sentence = input("Please enter a sentence:")

   print("Original Sentence:",sentence)

   # start at the third character

   for i in range(2,  len(sentence), 3):

       # access the string by index  

       print("Every third letter:", sentence[i])

Explanation:

def helps define the sentence ( input)

in order to start printing from third letter we start the range from 2 and keep the step 3 . The range i is in square parenthesis to show the range and access string.

You might be interested in
Which of the following has special properties that allow forces and pressure to be distributed evenly?
Thepotemich [5.8K]

Answer:

Fluids

Explanation:

Fluids has special properties that allow forces and pressure to be distributed evenly within them.

  • Fluids are gases and liquids whose intermolecular forces of attraction are generally weak or non-existence.
  • Therefore, when pressure is applied to them, it permeates evenly on all parts.
  • Their ability to tend to randomness makes liquids and gases very viable for distributing pressure.
7 0
3 years ago
/* Function findBestVacation * duration: number of vacation days * prefs: prefs[k] indicates the rate specified for game k * pla
alexira [117]

Answer:

This is the C++ code for the above problem:

#include<bits/stdc++.h>

using namespace std;

int computeFunLevel(int start, int duration, int prefs[], int ngames, int plan[]) {

if(start + duration > 365) { //this is to check wether duration is more than total no. of vaccation days

return -1;

}

int funLevel = 0;

for(int i=start; i<start+duration; i++) { //this loop runs from starting point till

//start + duration to sum all the funlevel in plan.

funLevel = funLevel + prefs[plan[i]];

}

return funLevel;

}

int findBestVacation(int duration, int prefs[], int ngames, int plan[]) {

int max = 0, index = 0, sum = 0 ;

for(int i=1; i<11; i++){ //this loop is to run through whole plan arry

sum = 0; //sum is initialized with zero for every call in plan ,

//in this case loop should run to 366,but for example it is 11

//as my size of plan array is 11

for(int j=0; j<duration; j++) { // this loop is for that index to index+duration to calc

//fun from that index

sum = sum + prefs[plan[i]];

}

if(sum>max) { //this is to check max funlevel and update the index from which max fun can be achieved

max = sum;

index = i;

}

}

return index;

}

int main() {

int ngames = 5;

int prefs[] = { 1,2,0,5,2 };

int plan[] = { 0,2,0,3,3,4,0,1,2,3,3 };

int start = 1;

int duration = 4;

cout << computeFunLevel(start, duration, prefs, ngames, plan) << endl;

cout << computeFunLevel(start, 555, prefs, ngames, plan) << endl;

cout << findBestVacation(4, prefs, ngames, plan) << endl;

}

The screen of the program is given below.

3 0
3 years ago
Các đặc điểm chính của đường dây dài siêu cao áp .
rodikova [14]

Answer:

Đường dây siêu cao áp 500kV: Những chuyện giờ mới kể ... ​Ngày 27/5/1994, hệ thống đường dây điện siêu cao áp 500kV Bắc - Nam chính thức đưa ... Tại thời điểm đó, các nước như Pháp, Úc, Mỹ khi xây dựng đường dây dài nhất ... và chế ra các máy kéo dây theo đặc thù công việc của từng đơn vị.

Explanation:

8 0
3 years ago
Where does Mr. Teller work? What do they do there?
natulia [17]

Most business owners begin his business in order to increase profit and to expand.

<h3>What are Business Practices?</h3>

This refers to the various ways in which a business owner decides to organize his business and the policies which guides it.

With this in mind, we can see that Mr X believes that it is a good business practice to <em>prioritize the work</em> that seems the most difficult and the most likely to kill their projects but this is not a good business practice because it can put the entire business in jeopardy.

Please note that your question is incomplete so I gave you a general overview so that you could get a better understanding of the concept.

Read more about business practises here:
brainly.com/question/1343903

7 0
2 years ago
What engineers call moment, scientists call
Svet_ta [14]

Answer:

yes

Explanation:

7 0
3 years ago
Other questions:
  • Two forces, one of which double the other has resultant of 280N. if the direction of the large force is reversed and the remaini
    6·1 answer
  • A large part in a turbine-generator unit operates near room temperature and is made of ASTM A470-8 steel ( ). A surface crack ha
    11·1 answer
  • La base de los tema relacionados a las ciencia de las ingeniería es?
    7·1 answer
  • When must an Assured Equipment Grounding Conductor Program (AEGCP) be in place?
    10·1 answer
  • How can we calculate the speed of the output gear in a simple gear train? Explain with the help of an example.
    7·1 answer
  • A control system that is used in elevator system
    7·1 answer
  • Calculate the tensile modulus of elasticity for a laminated composite consisting of 62 percent by volume of unidirectional carbo
    8·1 answer
  • A fusible link should be how many wire sizes smaller than the actual circuit wire?
    8·1 answer
  • What is the definition of insert view and why do we use it
    10·1 answer
  • Is santa real or nah is santa real or nah
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!