Answer:
if ((b*b - 4*a*c)<0)
cout << "no real solutions";
return;
Explanation:
To check if "b squared" – 4ac is negative, we use the expression if ((b*b - 4*a*c)<0). This expression evaluates the 'bsquared' and substracts '4ac' from it. It then compares the resulting value with zero. if it is less than zero it means it is a negative number, so it executes the statement following cout << "no real solutions"; and returns
Answer:
The answer to the following question is the option "C".
Explanation:
In computer science, Report is a document that displays data in a standardized format. We can summarize the report orally but the complete reports are always given in documents. In report styles, we can select controls for formatting sources, select controls for the formatting of citations and it does not control the overall formatting of the report. So the incorrect statement to this question is "Use the Page Setup tab to choose a report style for your document".
Answer:
A toolbar offers easier access to tasks typically conducted within the application whereas in the status bar it is displayed at the lower side of the web browser screens and other application windows.
Explanation:
Answer:
Scanner keyboard = new Scanner(System.in);
double discount = 0;
double productPrice;
double subTotal;
double salesTax;
double saleTotal;
System.out.printf("Enter the purchase amount:");
productPrice = keyboard.nextDouble();
if (productPrice > 10) {
discount = 10;
}
System.out.println( + discount + "% discount applied.");
subTotal = (productPrice);
salesTax = (subTotal * 0.14);
saleTotal = (subTotal + salesTax - discount );
System.out.printf("Subtotal: $%5.2f\n", subTotal);
System.out.printf("Discount; -$%5.2f\n", productPrice - discount);
System.out.printf("HST: $%5.2f\n", salesTax);
System.out.printf("Total: $%5.2f\n", saleTotal + salesTax);
}
}
Explanation:
Answer:Pseudocode & Algorithm Example 1: Write an algorithm to determine a student's final ... Pseudocode & Algorithm Pseudocode: Input a set of 4 marks Calculate their average by ... Information system flowcharts show how data flows from source documents ... Different symbols are used to draw each type of flowchart.
Explanation: