Nolur acil lütfen yalvarırım yalvarırım lütfen yalvarırım when should you integrate technology?
I'm going have to go with with 1.b and 2.d hope this helps and I don't need help right now.
Answer:
The program in C++ is as follows:
#include <iostream>
using namespace std;
int main(){
int qty;
float discount = 0;
cout<<"Quantity: ";
cin>>qty;
int cost = qty * 100;
{
; }
cout<<"Cost: "<<cost - discount;
return 0;
}
Explanation:
This declares the quantity as integer
int qty;
This declares and initializes discount to 0
float discount = 0;
This prompts the user for quantity
cout<<"Quantity: ";
This gets input for quantity
cin>>qty;
This calculates the cost
int cost = qty * 100;
If cost is above 1000, a discount of 10% is calculated
{
; }
This prints the cost
cout<<"Cost: "<<cost - discount;
Answer:
traversed
Explanation:
B-tree is a self balancing tree and it is a data structure which allows insertion, deletion operations.
inorder, preorder and post order, they all are traversing algorithms in the tree data structure.
inorder: first print left, then root and then right.
preorder: first print root, then left and then right.
postorder: first print left, then right and then root.
Therefore, the answer is traversed.