Solution :
function tickets(user_tickets){
var num_tickets;
if (user_tickets < 5) {
num_tickets = 1;
return ('num_tickets: '+ num_tickets);
}
else {
num_tickets = user_tickets;
return('num_tickets: '+ num_tickets);
}
}
// Testing the tickets function
// With user_tickets = 3, 5, 8, and 1
console.log(tickets(3));
console.log(tickets(5));
console.log(tickets(8));
console.log(tickets(1));
D. <span>use clear, short paragraphs.</span>
Answer:
Explanation:
Using Python programming language
Explanation:
1. I defined a function add and passed in two parameters (a,b).
2. In the block of the function, I added the two numbers and printed the result.
3. I decided to use a function so that the program is re-usable and can accept various inputs.
Find the code below. (# are used for comments)
#Addition of numbers
def add(a,b):
print(a+b)
#Test Cases
add(2,4.5) #Result=6.5
add(10,290) #Result=300
add(2.567,4.58) #Result=7.147
<h3>Answer:</h3>
Option B is the correct answer.
=> By clicking slideshow button.
<h3>Explanation:</h3>
A view in which audience should see the presentation is the SLIDE SHOW VIEW.
Slide show can be started by clicking on the Slide show tab than choose one of the desired option/ways to SET UP SLIDE SHOW.
<h3>I HOPE IT WILL HELP YOU!</h3>