Case based critical thinking
?
Case 13-2
?
Lisa can control the number of digits displayed by the browser using thetoFixed()method. However, since thetoFixed()method is limited to only defining the decimal place accuracy, she wants to use a method that gives her more control over the numeric format, such as formatting numbers as currency or separating thousands with the comma symbol.
Which of the following methods should Lisa use to format the numbers as currency?
A. currency: code
B. toLocaleString()
C. useGroup: Boolean
D. element.oninput
Answer: B
You might also like to view...
Suppose the function from Display 3.7 has the return statement removed. Which of the statements below regarding this change are correct? Why?
```
void iceCream(int number, double totalWeight)
{
if(number == 0)
{
cout << “cannot divide among zero customers.\n”;
return;
}
portion = totalWeight/number;
cout << “Each one receives “
<< portion << “ ounces of ice cream.” <
Case Based Critical Thinking Questions
Case 5-1 Carlos has developed a database for his organic farm.The farm sells organic produce and meat. In addition to the retail sales of his products, he offers cooking demonstrations five times each month for a small fee. The demonstrations are limited to 10 people. The database contains the following tables: Products, ProductPrices, ProductCosts, Suppliers, Customers, and CookingDemos. The Products, Product Prices, Product Costs and Suppliers tables are related using the ProductID field. The Customers and CookingDemos tables are related on the CustomerID field. Carlos needs to make some decisions using his database. Determine the best method for Carlos to use to achieve the results he wants. ? ? Carlos has decided to market his cooking demonstrations based on his most abundant products. To do that he needs to know the quantity of each product by category (such as beef, green vegetables, peppers, etc.) Because each product in the Products table is assigned a category in the Category field, he will create a query that lists the categories in rows in the datasheet and the product totals as columns in the datasheet when the query is run. Which type of query will Carlos create? A. crosstab query B. parameter query C. simple query D. top values query
A database designer installs and maintains operating system software and provides technical support to the programming staff.
Answer the following statement true (T) or false (F)
You can delete members from a contact group using the Add Members button.
Answer the following statement true (T) or false (F)