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 (4th Edition) (What's New in Computer Science)
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)
- Money Counting Algorithm: Write a program that shows how much the 25 cents, 50 cents and 1 TL coins you put on paper are worth using the size and color information. The algorithm is entirely up to you. Explain the algorithm you developed, add code and images. b) Heads and Tails Detection Algorithm: Write the program that shows whether the coin placed on the paper is heads or tails. Developing the algorithm is entirely up to you. This algorithm should work in three currencies. (If you find a suitable code, etc. somewhere, it is a direct copy. Your codes should be in accordance with the lectures. Put explanations about what you are doing).arrow_forwardSlove this using Midpoint line algorithm computer graphics subject int X1 = 2, Y1 = 2, X2 = 8, Y2 = 5; Find the points between the start and the end pointarrow_forwardIn a program, write the program's algorithm that calculates the sum of odd integers (T1) from 1 to N, the sum of even integers (T2), the sum of integers increasing by 5 (T3) and prints these values (T1, T2, T3) on the display.arrow_forward
- Using C++ languagearrow_forwardPYTHON Programming Language Write a simple program that asks the user for their name (first, middle, and last). Then return back to the screen their initials in caps and reversed.arrow_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_forwardWhat is the answer to this algorithmarrow_forward
- Computer sciencearrow_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_forwardpython programming languagearrow_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