The following pseudocode
area = width × length
Display “What is the room’s width?”
Input width
Display “What is the room’s length?”
Input length
Display area
Want to see the full answer?
Check out a sample textbook solutionChapter 1 Solutions
Starting Out with Java: From Control Structures through Data Structures (3rd Edition)
Additional Engineering Textbook Solutions
Artificial Intelligence: A Modern Approach
Digital Fundamentals (11th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
C++ How to Program (10th Edition)
Starting Out with Java: From Control Structures through Objects (6th Edition)
Java How to Program, Early Objects (11th Edition) (Deitel: How to Program)
- pythonarrow_forwardVolume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent equilateral triangular faces. Ask the user to supply the length of one of the edges (one side of a triangular face) and then calculate the total surface area and volume of the icosahedron. Report the answers and then repeat. Your program should loop until the value 0 is entered for the radius – and then it should promptly exit. Only positive numbers are allowed for the length of the edge. ???? =? √?∗?? ??????=?/?? (?+ √?)∗ ?3 assemblyarrow_forwardVolume and Area of a Regular Icosahedron An icosahedron is a regular polyhedron with 20 congruent equilateral triangular faces. Ask the user to supply the length of one of the edges (one side of a triangular face) and then calculate the total surface area and volume of the icosahedron. Report the answers and then repeat. Your program should loop until the value 0 is entered for the radius – and then it should promptly exit. Only positive numbers are allowed for the length of the edge. ???? =? √?∗?? ??????=?/?? (?+ √?)∗ ?3arrow_forward
- (Computation) A magic square is a square of numbers with N rows and N columns, in which each integer value from 1 to (N * N) appears exactly once, and the sum of each column, each row, and each diagonal is the same value. For example, Figure 7.21 shows a magic square in which N=3, and the sum of the rows, columns, and diagonals is 15. Write a program that constructs and displays a magic square for a given odd number N. This is the algorithm:arrow_forward(Simulation) Write a program to simulate the roll of two dice. If the total of the two dice is 7 or 11, you win; otherwise, you lose. Embellish this program as much as you like, with betting, different odds, different combinations for win or lose, stopping play when you have no money left or reach the house limit, displaying the dice, and so forth. (Hint: Calculate the dots showing on each die with the expression dots=(int)(6.0randomnumber+1), where the random number is between 0 and 1.)arrow_forward24. A piece of wire is to be bent in the form of a rectangle to put around a picture frame. The length of the picture frame is 1.5 times the width. Write a program that prompts the user to input the length of the wire and outputs the length and width of the picture frame.arrow_forward
- What is the answer to this algorithmarrow_forwardProgramming Language: PHP Using any Iteration Control Structure, create a program that will ask the user to input one integer, then display a simple multiplication table of the said integer.Example: Inputed integer: 1010 x 1 = 1010 x 2 = 20...10 x 10 = 100arrow_forwardFollow the instructions below: In the game Rock Paper Scissors, two players simultaneously choose one of three options: rock, paper, or scissors. If both players choose the same option, then the result is a tie. However, if they choose differently, the winner is determined as follows: Rock beats scissors, because a rock can break a pair of scissors. Scissors beats paper, because scissors can cut paper. • Paper beats rock, because a piece of paper can cover a rock. Create a game in which the computer randomly chooses rock, paper, or scissors. Let the user enter a number 1, 2, or 3, each representing one of the three choices. Then, determine the winner. Save the application as RockPaperScissors.java. (In the nhantan uCarrow_forward
- Computer ProgrammingLanguage: CConditional Statementsarrow_forwardPython programming languagearrow_forwardDirection : Make a guessing game program that will generate a random number and ask the user to guess the generated value with at most three (3) attempts: Problem/Required : The system should have the corresponding feature/s: Generate a random value between 1 to 10. Give the user at most 3 attempts to input a value between 1 to 10. Display “Higher” or “Lower” depending on the user’s input compared to the generated value. Display “Sorry, 3 attempts already.” after 3 incorrect attempts, “Congratulations! You got it in n attempt/s” Show the generated number.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT