Answer:
here is code in C++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
// variables to store number of each video
int new_video,old_video;
double total_charge;
cout<<"Please enter number of new video:";
// read number of new video
cin>>new_video;
cout<<"Please enter number of old video:";
// read number of old video
cin>>old_video;
// total change
total_charge=(3.0*new_video)+(2.0*old_video);
cout<<"total cost is: "<<total_charge<<endl;
return 0;
}
Explanation:
Declare two variables "new_video" and "old_video" to store the number of each type of video.Read the value of both from user.Then calculate total charge by multiply 3.0 to number of new video & 2.0 to number of old video and add both of them. This will be the total charge.
Output:
Please enter number of new video:4
Please enter number of old video:6
total cost is: 24
It is letter D. but i might be incorrect, please contact your teacher for further information. sorry if I got your answer wrong... :(
Answer:
Option B is the correct answer.
Explanation:
- In the above code, the loop will execute only one time because the loop condition is false and it is the Do-While loop and the property of the Do-while loop is to execute on a single time if the loop condition is false.
- Then the statement "x*=20;" will execute one and gives the result 200 for x variable because this statement means "x=x*20".
- SO the 200 is the answer for the X variable which is described above and it is stated from option B. Hence it is the correct option while the other is not because--
- Option A states that the value is 10 but the value is 200.
- Option C states that this is an infinite loop but the loop is executed one time.
- Option D states that the loop will not be executed but the loop is executed one time
Answer:
The answer to this question is given below in the explanation section.
Explanation:
Shelly recorded an audio composition for her presentation. She needs to follow the following proper orders to get composition done for her presentation.
- She connected her microphone to her computer.
- She selected the record option in her DAW.
- She added effects to her audio composition.
- She saved the audio composition in an appropriate file format.
- She saved her audio composition on an optical drive.