I think the answer is B: an optical drive
Hope this helps have a great night
Answer:
The pseudocode is as given below in the explanation while the flow diagram is attached herewith
Explanation:
The pseudocode is as follows
input cust_name, num_texts
Set Main_bill=5 $;
if the num_texts is less than or equal to 60
Excess_Charge=0;
If the num_texts is greater than 60 and less than or equal to 200
num_text60200 =num_texts-60;
Excess_Charge=0.1*(num_text60200);
else If the num_texts is greater than 60
num_texts200 =num_texts-200;
Excess_Charge=0.25*(num_texts200)+0.1*(200-60);
Display cust_Name
Total_Bill=Main_bill+Excess_Charge;
Total_Bill_after_Tax=Total_Bill*1.12;
Web browser is the term that refers to computer program that provide computer users with graphical interface to the internet.
Answer:
function moves(a) {
var left = 0;
var right = a.length-1;
var count = 0;
while (left < right) {
if(a[left] % 2 == 0) {
left++;
continue;
}
if(a[right] % 2 == 1) {
right--;
continue;
}
var temp = a[left];
a[left] = a[right];
a[right] = temp;
left++;
right--;
count++;
}
return count;
}
var a = [4,13,10,21,20];
console.log('Number of moves: ' + moves(a));
console.log('Sorted array: ' + a);
Explanation: