1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
AlekseyPX
3 years ago
15

If a store sells a packet of gum for R5.50 what will the cost for the gum be if you add the vat​

Mathematics
1 answer:
Vesna [10]3 years ago
3 0

Answer:

Step-by-step explanation:

It can be anything according to your value added tax.

You might be interested in
What is the angle of a triangle
Neko [114]

The internal angles of a triangle always add up to 180 degrees.

8 0
2 years ago
Using linked lists or a resizing array; develop a weighted quick-union implementation that removes the restriction on needing th
balu736 [363]

Answer:

Step-by-step explanation:

package net.qiguang.algorithms.C1_Fundamentals.S5_CaseStudyUnionFind;

import java.util.Random;

/**

* 1.5.20 Dynamic growth.

* Using linked lists or a resizing array, develop a weighted quick-union implementation that

* removes the restriction on needing the number of objects ahead of time. Add a method newSite()

* to the API, which returns an int identifier

*/

public class Exercise_1_5_20 {

public static class WeightedQuickUnionUF {

private int[] parent; // parent[i] = parent of i

private int[] size; // size[i] = number of sites in subtree rooted at i

private int count; // number of components

int N; // number of items

public WeightedQuickUnionUF() {

N = 0;

count = 0;

parent = new int[4];

size = new int[4];

}

private void resize(int n) {

int[] parentCopy = new int[n];

int[] sizeCopy = new int[n];

for (int i = 0; i < count; i++) {

parentCopy[i] = parent[i];

sizeCopy[i] = size[i];

}

parent = parentCopy;

size = sizeCopy;

}

public int newSite() {

N++;

if (N == parent.length) resize(N * 2);

parent[N - 1] = N - 1;

size[N - 1] = 1;

return N - 1;

}

public int count() {

return count;

}

public int find(int p) {

// Now with path compression

validate(p);

int root = p;

while (root != parent[root]) {

root = parent[root];

}

while (p != root) {

int next = parent[p];

parent[p] = root;

p = next;

}

return p;

}

// validate that p is a valid index

private void validate(int p) {

if (p < 0 || p >= N) {

throw new IndexOutOfBoundsException("index " + p + " is not between 0 and " + (N - 1));

}

}

public boolean connected(int p, int q) {

return find(p) == find(q);

}

public void union(int p, int q) {

int rootP = find(p);

int rootQ = find(q);

if (rootP == rootQ) {

return;

}

// make smaller root point to larger one

if (size[rootP] < size[rootQ]) {

parent[rootP] = rootQ;

size[rootQ] += size[rootP];

} else {

parent[rootQ] = rootP;

size[rootP] += size[rootQ];

}

count--;

}

}

public static void main(String[] args) {

WeightedQuickUnionUF uf = new WeightedQuickUnionUF();

Random r = new Random();

for (int i = 0; i < 20; i++) {

System.out.printf("\n%2d", uf.newSite());

int p = r.nextInt(i+1);

int q = r.nextInt(i+1);

if (uf.connected(p, q)) continue;

uf.union(p, q);

System.out.printf("%5d-%d", p, q);

uf.union(r.nextInt(i+1), r.nextInt(i+1));

}

}

}

8 0
3 years ago
What is the greatest common factor of the polynomial below? 8x^4x​
muminat

The greatest common factor is 8x^5

4 0
2 years ago
Please simplify this fraction
saw5 [17]
I hope this helps you

6 0
3 years ago
Which graph shows the equation V = 4 + 2t, where V is the total volume of water in a bucket and t is the elapsed time in minutes
kodGreya [7K]
1. Subtract 4 from both sides
v - 4 = 2t
2. Divide both sides by 2
v - 4/2 = t
3. Switch sides
t = v - 4/2
8 0
3 years ago
Read 2 more answers
Other questions:
  • Combining like terms -3(5x+4)-(2x+2)-3x+6
    12·1 answer
  • Runners race around a rectangular park during the city marathon. The length of the park is 6 miles. The width of the park is 7 m
    10·2 answers
  • Is it possible for a system of two Leonard places to have no solution explain your reasoning
    6·1 answer
  • Kayla is getting a her lunch at school there are 6 meal meal options 3 drinks options 3 dessert options in how many different wa
    6·2 answers
  • One step equations <br><br> 6a=0.95 <br><br> I'm really confused on how to do this
    5·1 answer
  • An elephant at the zoo drinks 88 gallons of water each day. The table shows the number of days the elephant drinks water and the
    7·2 answers
  • Arthur did not go to school for 36 days in a year. If his absence from school is 15 %, find the number of days the school opened
    11·1 answer
  • Write the equation of the line in slope-intercept form with slope m=4 through the point (-2,5)
    12·1 answer
  • Sabrina rode on a Ferris wheel at the state fair. The radius of the Ferris wheel was 106 feet. What is the approximate distance
    5·1 answer
  • Which of the following are quadratic functions a.y=x^2+5-2 b.y=x- 1/x c.y=5x-3/2+×^2 d.y=-x+2
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!