Answer:
#include<iostream>
using namespace std;
void OutputMinutesAsHours(double origMinutes) { //Same as question
double hours=origMinutes/60; //solution is here
cout<<hours;
}
//Below is same as mentioned in question
int main() {
OutputMinutesAsHours(210.0);
cout << endl;
return 0;
}
OUTPUT :
3.5
Explanation:
In the above code, only two lines are added. To convert minutes into hours we have to divide them 60, so we take minutes as input and define a new variable of double type which stores minutes converted to hours and then that variable is printed to console. For 210, it gives 3.5, similarly for 3600 it gives 60 and so on.
Answer:
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Explanation:
Okay, here are the steps to be taken in order to be able to Write a program that determines the price of a movie ticket as given in details in the question above. Therefore, checked the steps below;
==> Input the age and the time.
==> If the age is not greater than 13, input the time(that is <1700) and follow it by imputing the price.
And if the age is greater than 13, you will also need to input the price. Just as below;
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Answer:
a) D = 4.88 * 10^(-14) m^2 / s
b) <em>t </em>= 1.1 hr
Solution:
a) Magnesium in Aluminum diffusion:
D = Do * exp(-Qd / RT)
= (1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15)
= 4.88 * 10^(-14) m^2 / s
D = 4.88 * 10^(-14) m^2 / s
b) The composition remains same at say the distance Xo:
(Cx - Co) / (Cs - Co) = Constant
Xo^2 / D_{550} * <em>t </em>= Xo^2 / D_{450} * 15
D_{550} * <em>t </em>= D_{450} * 15
(1.2 * 10^(-4) m^2 / s) * exp ( - 130,000 / 8.31 * 723.15) * <em>t</em>
(4.88 * 10^(-14) m^2 / s) * 15
by, solving for <em>t </em>we get:
<em>t </em>= 1.1 hr
So, the time required is 1.1 hr.
Answer:
Option D is the correct answer for the above question.
Explanation:
Email list (as the name suggests) is defined as the set of an Email address. It is also the group of address which is needs for message distribution because an Email address is the only necessary part to send the mail which is also called the message. When a user wants to send the mass Email or message then he needs a list of email which can be filled at the "TO" or "CC" or "BCC" part of the compose mail and it can be able to send the mass message.
The above question asked about the list which is useful for the mass message then the answer is an Email list which is stated from the option D. Hence option D is the correct answer while other is not because--
- Option A states the actor list which is not required to send the mail.
- Option B states the client list which is not required to send the mail.
- Option C states the chat list which is not required to send the mail.
Answer:
When an instruction is sent to the CPU in a binary pattern, how does the CPU know what instruction the pattern means
Explanation:
When the CPU executes the instructions, it interprets the opcode part of the instruction into individual microprograms, containing their microcode equivalents. Just so you know, a full assembly instruction consists of an opcode and any applicable data that goes with it, if required (register names, memory addresses).
The assembly instructions are assembled (turned into their binary equivalent 0s and 1s, or from now on, logic signals). These logic signals are in-turn interpreted by the CPU, and turned into more low-level logic signals which direct the flow of the CPU to execute the particular instruction.