<span>The calculatePrice() method can be written in C. It will use and return doubles (which allows for decimals). It will calculate the house price of $100K + $20K per bedroom and $30K per bathroom. Next it will take that price and append the sales percentage and return that value.
double calculatePrice(decimal numBedrooms, decimal numBathrooms, decimal salesPercentage)
{
decimal housePrice = 100000 + (20000 * numBedrooms) + (30000 * numBathrooms);
return housePrice + (housePrice * salesPercentage);
}</span>
What do ur friend wants to apply for ?
Answer:
B C++
Explanation:
The two most common languages for game designers to learn are C++ and Java, although other languages are popular (such as C# for Unity). Another type of programming you may hear referred to is scripting, but that essentially comes down to a type of systems programming.
Answer:
the amount of C required is 190 units of C
Explanation:
the amount of C to cover the necessity of product A is
Ca = A units required * number of C units to manufacture a unit of A
Ca = 30 unit of A * 3 units of C/ unit of A =90 units of C
to produce B the same applies
Cb = B units required * number of C units to manufacture a unit of B
Cb = 25 unit of B * 4 units of C/ unit of B =100 units of C
therefore to cover the necessities of A and also B we will need:
total units of C required = units of C to produce A + units of C to produce B
C = Ca + Cb = 90 units of C + 100 units of C = 190 units of C
C= 190 units of C
The customer should consider buying the hard drive