Answer:
Hi!
<em>// First you have to initialize the variables.</em>
int hits = 0;
int atbats = 0;
float percentaje = 0;
function eligible() {
hits = inputHits(); <em>// Function that input the hits.</em>
atbats = inputAtBats(); <em>// Function that input the at bats.</em>
percentaje = hits/atbats; <em>// Now, you can calculate the percentaje.</em>
if( percentaje > 0.300) { <em>//If percentaje if greater than .300 will print Eligible for the All Stars Game.</em>
print('Eligible for the All Stars Game.');
} else { <em>//Otherwise will print Not elegible.</em>
print('Not elegible.');
}
}
}
Explanation:
The real-life applications of coding is that they are used in:
- Traffic Lights
- Coffee Machines, etc.
<h3>What are useful applications of codes?</h3>
Coding is known to be a tool that helps to make a composition of instructions that a computers needs to follow.
Note that in real life, Coding helps programmers to create programs, such as websites and apps that are used in Traffic Lights, etc.
Learn more about coding from
brainly.com/question/22654163
#SPJ1
- 1 meter=0.001 kilometers
_____________________________________
- 1,400,000×1 meter = 1,400,000×0.001 kilometers
_____________________________________
<span>- 1,400,000 meter = 1,400<span> kilometers
</span></span>