Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main() {
//variable to store input
double price;
int totalNumber;
// variable to store total price
double total_price;
cout<<"Enter the price of an order:";
// read the price of an order
cin>>price;
cout<<"Enter the number of orders:";
// read the total number of orders
cin>>totalNumber;
// calculate total price of all orders
total_price=price*totalNumber;
cout<<"total price of all orders: "<<total_price<<endl;
return 0;
}
Explanation:
Declare three variables "price" of double type,"totalNumber" of int type And "total_price" of type double.Read the value of an order and number of orders. The calculate the total price by multiply "price" with "totalNumber" and assign it to variable "total_price". Print the total price.
Output:
Enter the price of an order:12.5
Enter the number of orders:3
total price of all orders: 37.5
Answer:
hdiihgguilmjj jduhuiuedoibb
Answer:
D. Azure Log Analytics
Explanation:
The Azure service we can use when you have to correlate events from more than 1 sources into a repository which is centralized you have to use Azure Log Analytics.
it is a special surrounding for Azure monitor log data.Each workspace has their own repository and configuration.
Hence we conclude that the answer to this question is option D Azure Log Analytics.
Answer:
The correct code to the given question is
if ((counter % 10) == 0) // check the condition
{
System.out.println("Counter is divisible by ten: " + counter); // display
}
else // check the condition
{
System.out.println("Counter is not divisible by ten: " +counter); // display the //value
}
counter++; // increment the value of counter
Explanation:
Following are the description of code
- In the given question we have to check the condition that the given number is divisible by 10 or not .
- In the if block if the number is divisible by 10 then it print the value of number and increment the value of counter .
- In the else block if the number is not divisible by 10 then it print the value of number and increment the value of counter .
- It means the value of counter is increases in the if block as well as in the else block .So we have to remove the counter statement from there and place outside the if and else block .