Answer:
#include <iostream>
using namespace std;
int main()
{
int exam1 = 70;
int exam2 = 85;
int examAverage;
examAverage = (exam1+exam2)/2;
cout <<"The Average of Exam1 and Exam2 is: "<<examAverage<<endl;
return 0;
}
Explanation:
Using the C++, we declare the three variables all of type
exam1
exam2 and
examAverage
We assign initial values of 70 and 85 to exam1 and exam2 respectively
Answer:
= A1 * (A2 + A3)
Explanation:
In order to calculate the total weight of the equipment, he would need to first add the total weight of each item. This is done by adding the weight of the item by the weight of the packaging. Once you have this amount you can multiply this value by the total number of items being shipped and that should give you the total weight of the shipment. Using the cells, this can be calculated with the following formula in Excel...
= A1 * (A2 + A3)
It Is Wonderful Add That A "USB" Can Hold Anything At All But Some Thing's "System's" Need A Specific Format Like The "PlayStation Three" With "FAT32" Format.
To stay organized on an online school is no cursing. and keep your files clean and organized
Answer:
import java.util.Scanner;
public class ANot {
public static void main(String[] args) {
Scanner in = new Scanner (System.in);
System.out.println("How many cookies did you eat today");
int numOfCookies = in.nextInt();
double numCalories = (numOfCookies*300)/4;
System.out.println("The total number of calories you consumed in "+numOfCookies+" cookies is " +
" "+numCalories);
}
}
Explanation:
This code is implemented in Java.
- We know from the question that 4 cookies contain 300 calories
- Therefore number of calories consumed = (number of cookies eaten*300)/4
- To implement this in java we used the scanner class to prompt user for the input
- save the input to a variable and write mathematical expression for the number of calories consumed
- Then output the result