First, input at the end of column A (containing High Priority Customers Sales Out): =sum(A1:A20) This represents the sum of the values from cell A1 to cell A20. Then, to calculate the percentage of each cell in A, input the formula: =(A1/$A$21)*100 This formula will give you the percentage of A1, if you drag the box down to A20, you will have all the percentages of each sale from A1 to A20. Then, format the cell using the percentage number format with no decimal places. Select column D then right click, "format cells" and select number, adjust the number of decimal places. <span />
I will edit this if you edit your question..
Im confused. This is not a question..
Answer:
Please Find attached c++ code file.
Explanation:
- Ask User to enter highway number.
- Check if highway is primary or auxiliary.
- Check if highway number is even / odd.
- Find Primary high number for an auxiliary highway
Check if highway is primary or auxiliary.
Use if condition to check if the entered number is in between 0 and 99.If it's true than the highway is primary otherwise it's an auxiliary highway.
Check if highway number is even / odd.
To check if a number is even or odd we use simple modulo formula. In mathematics modulo returns the reminder of a division operation on two numbers.If modulo of a number and 2 is equal to zero than that number is an even number other wise its an odd number.
Find Primary high number for an auxiliary highway
As mentioned in the question last two digits of highway number is the number of primary high.
To Find last two digits of number apply modulo operation on highway number and 100. it will provide last two digits of number specifying our primary highway.