Homework Answers

Math 51397 50414
Physics 44335 44333
Chemistry 40988 40988
Economics 30646 30644
Programming & Computer Science 26878 26876
English 10084 10084
Biology 8111 8109
Management 6239 6239
Engineering 6056 6056
History 3490 3489
Psychology 2129 2129
Sociology 1858 1858
Geography 1574 1574
Marketing 1443 1443
Philosophy 1001 1001
Political Science 892 891
Law 876 876
French 438 438
Other 199 199

Questions: 238 634

Answers by our Experts: 237 641

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

Maximum Number of Books:

There are multiple(T)book stores in the area each shopkeeper has a list of B integers that represents the cost of each book you have different pocket money(p) for each book store. write a program to calculate the maximum number of books you can buy in each store with the corresponding packet money.

input:

The first line of input is a positive integer T that represents the number of shops.

The following lines represent the details of the T shops.

Each set of two consecutive lines represents the details of a shop.

The first line of each set contains two space-seperated integers B & P

The second line of each set contains B space-seperated integers.

input:

3

6 100

20 40 10 80 20 10

4 70

20 10 300 30

4 200

220 1000 500 2000

output:

5

3


input:

2

8 250

2070 1350 365 2750 30 20 140 240

4 500

1070 2893 2200 39

output:

3

1





Sucrose (table sugar) has a molar mass of 342.30 g/mole.

342.30 g/mole. How many sucrose molecules are in a 8.80-pound

8.80-pound bag of sugar? (1 pound=453.6 grams.)



Math Quiz:


The first line input space-seperated integers.

the second line input is positive integer M denoting the number of index ranges

The next M lines contains two space-seperated integers of the range.


explanation: 1 2 2 3 3 3 4 5 6

2

0 2

1 4

output:

1+2+2=5

1+2+2+3+3+3+4=18


input:

1 2 2 3 3 3 4 5 6

2

0 2

1 4

output:

5

18

input:6 6 14 20 8 -2 2 -3

4

1 2

2 5

3 6

0 4

output:

2

2

12

2




Problem # 2



SM Supermalls is one of Southeast Asia's biggest developers and the operator of 72 malls in the Philippines. Create a C++ program that displays the number of rewards points an SM Mall customer earns each month. The rewards points should be based on membership type and total purchased amount each month. The output should be in a fixed point notation with no decimal places.



Membership Type



Advantage



Total Monthly Purchase



Less than 3750



3750 7499



7500 and over



Prestige



Less than 10,000



10,000 and over



Reward points



5% of the total monthly purchased



7.5% of the total monthly



10% of the total monthly



4% of the total monthly



15% of the total monthly

The average height of Grade 10 students 148 cm. A sample of 250 male students had an average height of 148.3 cm with a standard deviation of 8 cm. Is there a significant difference between the height of the students?

In an isosceles trapezoid the 5- cm altitude drawn from the endpoint of the shorter base to

the larger base divides the larger base in segments of 10 cm and 25 cm long. Compute for

the area of the trapezoid.


63. How much work is done by 15 kW engine during 3.5 min?


1) Classify three kinds of statistics, their need, applicability, the idea of phase space, macro-microstates.


Suppose that you have a computer with a memory unit of 24 bits per word. In this computer, the assembly program’s instruction set consists of 198 different operations. All instructions have an operation code part (opcode) and an address part (allowing for only one address). Each instruction is stored in one word of memory. a. How many bits are needed for the opcode? b. How many bits are left for the address part of the instruction? c. How many additional instructions could be added to this instruction set without exceeding the assigned number of bits? Discuss and show your calculations. d. What is the largest unsigned binary number that the address can hold?


Write an assembly program using MARIE's assembly Instruction set that prompts the user to enter a non-negative integer that is less than 10. The program should include a subroutine that keeps prompting until a valid value is obtained. When a valid number is entered, it will be displayed. (Hint: Use JNS & JUMPI instructions to implement the subroutine)


LATEST TUTORIALS
APPROVED BY CLIENTS