With the help of well-lebelled diagrams, compare the long run equilibrium of a firm under a perfectly competitive market structure and a monopoly market structure
Ten students had worked in a clothing store during the holidays. At the end of
the holiday, they receive a wage according to the number of items that they
sold. The rate of pay is R6.50 per item. Enter the student name and the
number of items that the student sold during the holidays and display the
student name and the amount earned by every student. Also calculate and
display the student name of the student who sold the most items.
Vishal is having a bunch of coins ranging from rupees 1 to 10. Help him to write program to find the sum and average of the coins that he is having using while loop.
Sales (40,000 units @ Br. 25 each) ............ Br. 100,000
Less: Variable Costs.............................. 70,000
Contribution Margin ............................. 30,000
Less: Fixed Costs ................................. 18,000
Net Profit .......................................... 12.000
3. Square to the Next Level
by CodeChum Admin
We've already tried printing out the values of an array in reversed order, right? Today, we shall compute for the squares of all the numbers.
There's already a predefined array/list containing 100 integer values. Loop through each values, compute their squares, and display them.
Output
Multiple lines containing an integer.
4
9
25
10000
49
9
25
9
1
16
.
.
.
Search and Rescue
by CodeChum Admin
Make a program that will accept an integer and loop for the same number of times as that of the inputted integer and input random integers and add it to the array/list one by one, per line. Afterwards, make your program accept another random integer.
Using that final integer, compare from your array/list if the final integer's value is also present in your current array/list. If so, print "Present"; otherwise, print "None".
Start coding now!
Input
The first line contains the size of the array/list. The next lines contain the integers. The last line contains an integer to be searched.
5
3
21
2
5
23
2
Output
A line containing a string.
Present
Using ArrayList create a book borrowing system. Create ListBook.txt that list all the book information such as bookId, bookTitle, bookAuthor, bookGenre.
In the process of rubbing the lenses of the eyeglasses, 6.28x1010 electrons were transferred. What is the change in their masses?
A star having rotational inertia of 10 1049 kgm2 is rotating at an angular speed of 2.0 revolutions per month about its axis. The only force on it is the force of gravitation. When its nuclear fuel is exhausted, it shrinks to a neutron star having rotational inertia of 6.0 x 1048 kgm². Determine the angular speed of the neutron star in revolutions per month.
A star having rotational inertia of 10 1049 kgm2 is rotating at an angular speed of 2.0 revolutions per month about its axis. The only force on it is the force of gravitation. When its nuclear fuel is exhausted, it shrinks to a neutron star having rotational inertia of 6.0 x 1048 kgm². Determine the angular speed of the neutron star in revolutions per month.