Answer:
See explanation
Explanation:
//Include the
//required header files.
#include <stdio.h>
//Define the
//main() function.
int main(void) {
//Declare the
//required variables.
char input_char;
int input_int;
double input_double;
char input_string[100];
//Prompt the user
//to enter an integer.
printf("Enter integer: ");
//Read and store
//the integer.
scanf("%d", &input_int);
//Prompt the user
//to enter a double value.
printf("Enter double: ");
//Read and store
//the double value.
scanf("%lf", &input_double);
//Prompt the user
//to enter a character.
printf("Enter character: ");
//Read and store
//the character.
scanf(" %c", &input_char);
//Prompt user to
//enter the string
printf("Enter string: ");
//Read and
//store the string.
scanf("%s", input_string);
//(1)
//Display the values.
printf("%d %lf %c %s\n",
input_int, input_double,
input_char, input_string);
//(2)
//Display the values
//in reverse order.
printf("%s %c %lf %d\n",
input_string, input_char,
input_double, input_int);
//(3)
//Cast the double to
//an integer and display it.
printf("%lf cast to an integer is %d",
input_double, (int)(input_double));
//Return from the
//main() function.
return 0;
}
Where’s the sheet or the picture ?
Answer:
Below is the desired C++ program for the problem. Do feel free to edit it according to your preference
Explanation:
#include <iostream>
#include <vector>
using namespace std;
void ExactChange(int userTotal, vector<int> &coinVals) {
coinVals.reserve(5);
coinVals[0] = userTotal / 100;
userTotal %= 100;
coinVals[1] = userTotal / 25;
userTotal %= 25;
coinVals[2] = userTotal / 10;
userTotal %= 10;
coinVals[3] = userTotal / 5;
userTotal %= 5;
coinVals[4] = userTotal;
}
int main() {
vector<int> coins;
int value;
cin >> value;
if (value <= 0) {
cout << "no change" << endl;
} else {
ExactChange(value, coins);
if (coins[0] != 0) cout << coins[0] << " " << (coins[0] == 1 ? "dollar" : "dollars") << endl;
if (coins[1] != 0) cout << coins[1] << " " << (coins[1] == 1 ? "quarter" : "quarters") << endl;
if (coins[2] != 0) cout << coins[2] << " " << (coins[2] == 1 ? "dime" : "dimes") << endl;
if (coins[3] != 0) cout << coins[3] << " " << (coins[3] == 1 ? "nickel" : "nickels") << endl;
if (coins[4] != 0) cout << coins[4] << " " << (coins[4] == 1 ? "penny" : "pennies") << endl;
}
return 0;
}
Answer:
82.62%
Explanation:
The z score is a score used in statistics to determine by how many standard deviations the raw score is above or below the mean. The z score is given by:

From the normal distribution table, P(11.85 < x < 12.15) = P(-1.36 < z < 1.36) = P(z < 1.36) - P(z < -1.36) = 0.9131-0.0869 = 0.8262 = 82.62%
Answer:

Explanation:
Given data:
d = 0.5 inch


we know that change in length is given as



modulus of elasticity E for aluminium alloy is 


