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

Ever wondered how change is disbursed to customers in certain stores? In Namibia the following
notes exists 200,100,50,20,10 and following coins: 5, 1, 50c, 10c, 5c. For the sake of this exercises
let us only consider change below 50 see below example:
Sample run 1:
Enter item name: Apples
Enter QTY of Apples: 2
Enter price per item N$: 3.25
Amount tendered N$: 50
Your change is: N$ 43.50
Disbursed as follows: 2 x N$20; 0 x N$10; 0 x N$5; 3 x N$1; 1 x 50c; 0 x 10c; 0 x 5c
[Hint: make use of % and / operators to determine the values needed, see Pg. 113 for more info.]
Create a program that reads the users name and year of birth from input(keyboard), then print out
their name and age in decades(find out the meaning).
Sample run 1: Sample run 2:
Enter your name: Hausiku Enter your name: Johanna
Enter your year of birth:1999 Enter your year of birth:2005
Output: Hello Hausiku, you have lived for 2 Output: Hello Johanna, you have lived for 1
decade(s) decade(s).
Create a program that when run with two numbers as CMD arguments, it prints out the difference
and product separated by space[Hint: CMD arguments need to be converted to integers]:
Sample run 1: Sample run 2:
java lab02_task02 12 3 java lab02_task02 2 5
Output: 9 36 Output: -3 10

create a class named 'student' with a string variable 'name' and an integer variable 'roll_no'. Assign the value of roll_no as '2' and that name as "john" by creating an object of the class student.


Create a program that when given a four word sentence as CMD arguments, it prints it backwards.
E.g the sentence “How are you Today”, will be printed as “Today you are How”.
Sample run 1: Sample run 2:
java lab02_task01 how are you today java lab02_task01 we are going home
Output: today you are how Output: home going are we

in a company an employee is paid as follows; if his basic salary is less than 50,000 then house allowance is 10% and inflation allowance is 5% of basic salary. if his salary is equal to or above 50,000 then his house allowance is equal to 10,000 and inflation allowance is 8% of basic salary. if the employee basic salary is input by the user, write a c++ program to find an employee's gross salary


write a c++ program that tells you if a number is odd or even


what will happen when you run the following program?

#include<iostream>

void main()

{

int i=10, j=5;

int modResult=0;

in divResult=0;

modResult=i%j;

cout<<modResult<< " ";

divResult=i/modResult;

cout<<divResult;

}


identify errors in the following c++ program

#include<iostream>

void main()

{

int i=0;

i=i+1;

cout <<i << " " ;

/*comment \*//i=i+1;

cout <<i;

}


after the execution of the following code, what will be the value of x?

int x=5;

if(x>5)

x=x+10;

else if(x<3)

x=x-5;

else x=100;


LATEST TUTORIALS
APPROVED BY CLIENTS