Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Using functions and other program constructs write a program that records the coursework

marks for students enrolled in HCSCI132. The coursework marks consists of three practical

assignments, one theory assignment, two tests and a mini project. The program should be

able to carry out the following operations:

a) Store marks in appropriate data types or data structures and relate the marks with the

student registration number and programme.

b) Calculate the overall coursework mark using formula;

Overall coursework mark = average practical mark * 15% + average of (theory

assignment + test marks)*15% + mini project * 10%

c) Display students who got less than half of the overall coursework i.e. 20% and below.

d) Display all student overall coursework marks ranked from the highest score to the lowest


Given a shopkeeper in your location is in need of an accounting system which will ensure
efficient recording and easy report generation of every day transactions. Using the classes,
control structures, appropriate types and other program constructs write a python program which:
a) Captures products in stock (i.e. name, price, date supplied, supplier name, quantity).
b) Retrieves the price when name is given upon each purchase and deducts the quantity in
stock.
c) Calculates the total price for each purchase and prints value indicating date and time of
purchase.
d) Sends an alert when quantity reaches 5 to shopkeeper and places order to supplier.
Use quantifiers to express the statement "if somebody is a female and is a parent, then this parent is a mother".
  1. Given a Queue consisting of first n natural numbers (in random order). The task is to check whether the given Queue elements can be arranged in increasing order in another Queue using a stack. The operations allowed are: 

a. Push and Pop elements in the stack. b. Delete from the given Queue. 

c. Insert into another Queue.

Examples :

 Input : Queue[] = { 5, 1, 2, 3, 4 }; Output : Yes 

Delete the first element of the given Queue i.e 5. 

Push 5 into the stack. 

Now, Delete all the elements of the given Queue and Insert them into the second Queue. 

Now, pop element 5 from the stack and Insert it into the second Queue. 

  Input : Queue[] = { 5, 1, 2, 6, 3, 4 }; Output : No




Write a C code to add two polynomials using an array.


In a library a librarian is stacking the books using their numeric ids. He may push or pop a book from top and want to know which book ids are currently in the stack. Make a class based menu driven program to take size of stack in 1st line and then either of options – pop, push or stop. If pop or stop option is given no numeric value follows but if push is given a numeric value to be pushed is given.

Sample Input:

5 push 3 push 1 push 9 push 11 pop push 4 push 7 pop stop

Output:

Welcome to stacks!

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Element popped: 11

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Give one of options: pop, push, stop

Element popped: 7

Give one of options: pop, push, stop

Stack elements are:

|4|

---

|9|

---

|1|

---

|3|

---


3 Given the relations R (A, B) and S (B, C) where values are all integers. Examine the undermentioned three relational algebra expressions: a. A, C(R⋈B=1S) b. A(B = 1R)XC(B = 1S) c. A, C (ARXB = 1S) Two of the three expressions are equivalent (i.e., they produce the same answer on all databases), while one of them can produce a different answer. 2.3.1 Which query can produce a contrasting answer? Give the simplest database instance you can think of where a different answer is produced. (5) 2.3.2 Why do we care that the expressions are equivalent? (5) 2.3.3 How can we determine that the expressions are equivalent? 


A Basic Calculator

In this project, you will use classes, methods, and objects to create a simple arithmetic calculator. The calculator will be able to:

  • Add two integers
  • Subtract two integers
  • Multiply two integers
  • Divide two integers
  • Apply the modulo operator on two integers

Given the number of rows N, write a program to print the hallow diamond pattern with alphabets



Consider the code given below.

[Assume all the header files and namespaces included.]

How many times the following are invoked:

I) Default constructor

II) Parameterized constructor

III) Copy constructor

IV) Destructor

class test

{ int a;

public:

test(){a=0;}

test(int x) {a=x;}

test(const test &T){a=T.a;}

~test(){ }

test add(test X)

{ test T;

T.a=a+X.a;

return 0;

}


int main()

{ test t1(5),t2(10),t3;

t3=t1.add(t2);

return 0;

}


LATEST TUTORIALS
APPROVED BY CLIENTS