Graphic images can be stored in a variety of formats including JPEG and GIF. Hope this helped!
The indices of the internal array elements that hold the remaining elements is c) 2 to 4
<h3>Calculations and Parameters:</h3>
For us to create a capacity of 10 for the queue, we would enqueue:
We would create a queue of capacity 10:
<h3>Queue q(10);</h3>
We add elements/enqueue 5 elements to the queue :
- q.queueEnqueue(10);
- q.queueEnqueue(5);
- q.queueEnqueue(8);
- q.queueEnqueue(9);
- q.queueEnqueue(2);
Printing this would give:
q. queueDisplay()
10, 5, 8, 9, 2
Next, we would remove elements/dequeue 2 elements from the queue :
q. queuedequeue();
q. queuedequeue();
Printing it would be:
q. queueDisplay()
8 ,9, 2
Observing this, the deletion/dequeue starts from the front/first index.
The remaining indices of the internal array elements are: 2, 3, 4 or 2 to 4
Read more about arrays and enqueue here:
brainly.com/question/24188935
#SPJ1
Answer:
CISSP
Explanation:
The CIDDP concentrations are an extension and development on the knowledge and credentials of the standard CISS certification that improves employability and career advancement
The CISSP concentrations includes
Information System Security Architecture Professional which can be known as ISSAP
Information System Security Engineering Professional which can be known as ISSEP
Information System Security Management Professional which can be known as ISSMP.
Program p1;
var a,b,c,d : integer; {i presume you give integer numbers for the values of a, b, c }
x1, x2 : real;
begin
write('a='); readln(a);
write('b='); readln(b);
write('c=');readln(c);
d:=b*b - 4*a*c
if a=0 then x1=x2= - c/b
else
if d>0 then begin
x1:=(-b+sqrt(d)) / (2*a);
x2:=(-b - sqrt(d))/(2*a);
end;
else if d=0 then x1=x2= - b /(2*a)
else write ("no specific solution because d<0");
writeln('x1=', x1);
writeln('x2=',x2);
readln;
end.
Hello, you haven't provided the programing language in which you need the code, I'll explain how to do it using Python, and you can follow the same logic to make a program in the programing language that you need.
Answer:
1. # -*- coding: utf-8 -*-
2. #Python
3. class Calculator:
4. def add(self):
5. print(a + b)
6. def sub(self):
7. print(a - b)
8. def mul(self):
9. print(a * b)
10. def div(self):
11. print(a / b)
12.
13. obj = Calculator()
14. choice = 1
15. while choice != 0:
16. a = int(input("\nEnter first number: "))
17. b = int(input("Enter first number: "))
18.
19. print("\n0. EXIT")
20. print("1. DIVISION")
21. print("2. ADDITION")
22. print("3. SUBTRACTION")
23. print("4. MULTIPLICATION")
24.
25. choice = int(input("\nEnter your choice: "))
26. if choice == 1:
27. obj.div()
28. elif choice == 2:
29. obj.add()
30. elif choice == 3:
31. obj.sub()
32. elif choice == 4:
33. obj.mul()
34. else:
35. break
Explanation:
- From lines 1 to 12 we define the object with four methods, addition, subtraction, multiplication, and division. Each method contains the operation between two variables inside a print function
- On line 13 we instantiate our class
- On line 14 we declare the variable choice that is going to store the operation that the user wants to perform
- On line 15 we declare a while loop, this is going to keep running the program until the user wants to exit
- From line 16 to 18 we ask the user to enter two numbers
- From line 19 to 24 we print the possible operation, assigning a number for each operation, this indicates to the user what number to press for what operation
- On line 25 we ask the user for the operation
- From lines 26 to 35 we check the user input an accordingly we call the corresponding method to performs the operation