Answer:
See attachment for flowchart
Explanation:
The flowchart is represented by the following algorithm:
1. Start
2. Input Mass
3. Input Volume
4 Density = Mass/Volume
5. Print Density
6. Stop
The flowchart is explained by the algorithm above.
It starts by accepting input for Mass
Then it accepts input for Volume
Step 4 of the flowchart/algorithm calculated the Density using the following formula: Density = Mass/Volume
Step 5 prints the calculated Density
The flowchart stops execution afterwards
Note that the flowchart assumes that the user input is of number type (integer, float, double, etc.)
Using the computer language in python to write a function code that personalized house signs
<h3>Writting the code in python:</h3>
<em>#Assign varibles</em>
<em>charge = 0.00</em>
<em>numChars = 8</em>
<em>color = "gold"</em>
<em>woodType = "oak"</em>
<em />
<em>#Checking for number of characters</em>
<em>if numChars > 5:</em>
<em>charge = 35 + (numChars-5)*4</em>
<em>elif numChars > 0:</em>
<em>charge = 35</em>
<em />
<em>#Checking wood type</em>
<em>if woodType == "oak":</em>
<em>charge += 20</em>
<em />
<em>#Checking for color</em>
<em>if color == "gold":</em>
<em>charge += 15</em>
<em />
<em>#Print output</em>
<em>print("The charge for this sign is $"+str(charge)+".")</em>
See more about python at brainly.com/question/13437928
#SPJ1
The CPU is the working principle
Answer:
Alt + F9
Explanation:
The Keyboard shortcut that Stephen can use use to toggle between data and the field codes is Alt + F9. This is in regards to Microsoft Word Fields for both Windows and Mac operating systems. Although ALT + F9 will toggle between these two but for all the fields within the document. If you want to toggle between a single or various fields it would be Shift + F9.
Answer:
Answered below
Explanation:
class TestScores {
double test1;
double test2;
double test 3;
public TestScores (double test1, double test2, double teat3){
this.test1= test1;
this.test2 = test2;
this.test3 = teat3;}
//mutator
public setTest1(double test1){
this.test1 = test1;
}
//accessor
public double getTest1(){
return test 1;
}
//Write same accessors and mutators for test2 and test3
public double getTestAverage(){
double sum = test1+test2+test3;
return sum / 3;
}
}
class TestRun{
public static void main (String [] args){
TestScores scores = new TestScores(50.5, 40.0, 80.7)
int average = scores.getTestAverage();
System.out.print(average);
}