1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Firdavs [7]
3 years ago
10

Draw the flowchart and pseudocode for a program allowing the user to enter a value for one edge of a cube(A box-shaped solid obj

ect that has six identical square faces).
The program should calculate the surface area of one side of the cube
The program should calculate the surface area of the whole cube
The program should calculate the volume of the cube.
The program should output all of the results from the calculations.
The program should output the value the user entered.
Submit the flowchart and pseudocode together with draw.io
Complete the flowchart and pseudocode using draw.io. Include your pseudocode by adding a "square shape" next to your flowchart and populating it with your pseudocode for the program. Export your work in PDF format and upload it to the Blackboard assignment area by clicking on the Browse My Computer button below the text editor.
Complete the Python code using IDLE. Upload your .py file to the Blackboard assignment area by clicking on the Browse My Computer button below the text editor.

Computers and Technology
1 answer:
horsena [70]3 years ago
6 0

Answer:

The flowchart, pseudocode and python program all have the same objective.

The flowchart is designed using draw.io (See attachment)

Pseudocode begins here:

1. Start

2. Input Length

3. Area1 = Length * Length

4. Area2 = 6 * Area1

5. Volume = Area1 * Length

6. Print Length

7. Print Area1

8. Print Area2

9. Print Volume

10. Stop

Python Program begins here:

#Prompt user for input

length = float(input("Length of the edge: "))

#Calculate the area of a side

Area1 = length * length

#Calculate the area of the cube

Area2 = 6 * Area1

#Calculate the volume

Volume = Area1 * length

print("Length: "+str(length))

print("Area of a side: "+str(Area1))

print("Area of the cube: "+str(Area2))

print("Volume: "+str(Volume))

Explanation:

The flowchart , pseudocode and python program start by requesting for user input;

This user input is saved in variable length

The surface area of a face is calculated by length * length and saved in Area1; i.e. Area1 = length * length

The surface area of the cube is calculated by 6 * Area1 and saved in Area2. i.e. Area2 = 6 * Area1 = 6 * length * length

The volume of the cube is calculated by Area1 * length and saved in volume. i.e. Volume = Area1 * length = length * length * length

After the surface area of one side of the cube

, the surface area of the whole cube  and the volume of the cube are calculated; the program then prints the user input (length) and each of the calculated parameters.

You might be interested in
Which keyboard shortcut can you use to access the go to feature, which will allow you to move quickly to another location in the
I am Lyosha [343]

The keyboard shortcut can you use to access the go to feature, which will allow you to move quickly to another location in the document  is  Ctrl+G or F5.

<h3>What is a keyboard shortcut?</h3>

Keyboard shortcuts are known to be keys or a set of combination of keys that a person can press on one's keyboard to carry out a specified tasks.

By using keyboard shortcuts , one is often often faster than using a mouse  and  to see the option you are looking for, you have to press Ctrl+G or F5.

Learn more about keyboard shortcut  from

brainly.com/question/12531147

8 0
2 years ago
Program MATH_SCORES: Your math instructor gives three tests worth 50 points each. You can drop one of the test scores. The final
Simora [160]

Answer:

import java.util.Scanner;

public class num5 {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       //Prompt and receive the three Scores

       int score1;

       int score2;

       int score3;

       do {

           System.out.println("Enter first Score Enter score between 1 -50");

           score1 = in.nextInt();

       } while(score1>50 || score1<0);

       do {

           System.out.println("Enter second Score.The second score must be between 1 -50");

           score2 = in.nextInt();

       } while(score2>50 || score2<0);

       do {

           System.out.println("Enter Third Score Third score must between 1 -50");

           score3 = in.nextInt();

       } while(score3>50 || score3<0);

       //Find the minimum of the three to drop

       int min, min2, max;

       if(score1<score2 && score1<score3){

           min = score1;

           min2 = score2;

           max = score3;

       }

       else if(score2 < score1 && score2<score3){

           min = score2;

           min2 = score1;

           max = score3;

       }

       else{

           min = score3;

           min2 = score1;

           max = score2;

       }

       System.out.println("your entered "+max+", "+min2+" and "+min+" the min is");

       int total = max+min2;

       System.out.println("Total of the two highest is "+total);

       //Finding the grade based on the cut-off points given

       if(total>=90){

           System.out.println("Grade is A");

       }

       else if(total>=80){

           System.out.println("Grade is B");

       }

       else if(total>=70){

           System.out.println("Grade is C");

       }

       else if(total>=60){

           System.out.println("Grade is D");

       }

       else{

           System.out.println("Grade is F");

       }

   }

}

Explanation:

  • Implemented with Java
  • Use the scanner class to receive user input
  • Use a do.....while loop to validate user input for each of the variables. A valid score must be between 0 and 50 while(score>50 || score<0);  
  • Use if and else to find the minimum of the three values and drop
  • Add the two highest numbers
  • use if/else if /else statements to print the corresponding grade
8 0
3 years ago
On laptops, wireless cards tend to be attached to which panel?
ELEN [110]

Answer:

LCD panel

Explanation:

Regularly these wireless cards tend to be attached to the LCD panel because the wireless cards have a Wi-Fi antenna to get a better signal.

Regularly the wireless card has two cables, those cables go between the hinges until arrives at the display panel (LCD panel).

There are wireless cards that are connected by the USB port, this is so useful because there are some cards welded in the motherboard.

8 0
4 years ago
Which of the following statements is TRUE?
viktelen [127]

Answer:

3

Explanation:

5 0
3 years ago
Read 2 more answers
The basic information in a database program is stored in a table format similar to a:
Ierofanga [76]

Can you add the options?

7 0
3 years ago
Other questions:
  • Where is the error in this code sequence?
    11·1 answer
  • Which of these expressions is used to check whether num is equal to value?
    12·1 answer
  • Briefly discuss constraints
    13·1 answer
  • You have been asked to create a Community leveraging Out-of-the-box login, logout, self-registration, and error pages. Would you
    5·1 answer
  • Providing incentives for customers to learn more about your service is known as?
    7·1 answer
  • What's a False statement about online time? A. Blue light from devices can make it hard to sleep. B. It's a good way to connect
    5·1 answer
  • Identify the correct way to cite the Occupational Outlook Handbook's "How to Become a Dentist" web page.
    8·2 answers
  • HELP ASAP!!<br> What is the difference between an internal event and an external event?
    10·1 answer
  • Which of the four factors of production are hit the hardest when high unemployment occurs ?
    10·1 answer
  • If an algorithm created to help make hiring decisions is based on previous unfair decisions, then the algorithm may be
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!