Answer:
c) 4.4
Explanation:
You can evaluate step by step the code. You know tha your input is 4.0
Step 1 Variables definitions:
double tax;
double total;
Step 2 Ask the user for the input:
System.out.print("Enter the cost of the item");
Step 3 read de input:
total = scan.nextDouble();
Step 4 evaluate the condition ( is the input greater or equal than 3.0 ? [True])
if ( total >= 3.0)
Step 5 get done the operations inside the condition and print it:
tax = 0.10;
System.out.println(total + (total * tax));
Answer:
Explanation:
pop(): Remove an item from the end of an array
push(): Add items to the end of an array
shift(): Remove an item from the beginning of an array
unshift(): Add items to the beginning of an array
Programmers can maximize the reliability of their programs by means of functional analysis.
The form in which programmers can <em>maximize</em> the reliability of their programs in accordance with the awareness of the beneficial and harmful impact on society, economies and cultures is how well they did processes of functional analyses, in which they investigate on market and client needs and derive <em>functional</em> and <em>non-functional</em> parameters, which define the scope and characteristics of the program.
A good functional analysis has an influence of about 80 % on success of programs on fulfilling existing needs and solving existing problems with a <em>reasonable</em> efforts.
We kindly invite to check this question on functional analysis: brainly.com/question/23731043
Answer:
def scramble(s):
if len(s) % 2 == 1:
index = int(len(s)//2)
else:
index = int(len(s)/2)
return s[index:] + s[:index]
Explanation:
Create a function called scramble that takes one parameter, s
Check the length of the s using len function. If the length is odd, set the index as the floor of the length/2. Otherwise, set the index as length/2. Use index value to slice the s as two halves
Return the second half of the s and the second half of the s using slice notation (s[index:] represents the characters from half of the s to the end, s[:index] represents the characters from begining to the half of the s)