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
Marina86 [1]
3 years ago
6

Pascal system . write the program that will calculate the perimeter of a rectangle if its area is A (m²) and one of its sides ha

s a length of B (m). A and B are entered from the keyboard.​
Computers and Technology
1 answer:
faltersainse [42]3 years ago
7 0

Answer:

The program in Pascal is as follows:

Program Perimeter;

Uses Crt;

Var

 Length : Real;

 Width : Real;

 Area    : Real;

 Perim : Real;

Begin

 Clrscr;

 Write('Area: ');

 Readln(Area);

 Write('Length : ');

 Readln(Length);

 Width := Area/Length;

 Perim := 2 * (Length + Width);

 Write('Perimeter: ' ,Perim:5:2,'.');

End.

Explanation:

This declares all variables as real

<em>Var </em>

<em>  Length : Real; </em>

<em>  Width : Real; </em>

<em>  Area    : Real; </em>

<em>  Perim : Real;</em>

The program execution begins here<em> </em>

Begin

This clears the screen

 Clrscr;

This prompts the user for Area

 Write('Area: ');

This gets input for Area

 Readln(Area);

This prompts the user for Length

 Write('Length : ');

This gets input for Length

 Readln(Length);

This calculates the width

 Width := Area/Length;

This calculates the perimeter

 Perim := 2 * (Length + Width);

This prints the calculated perimeter

 Write('Perimeter: ' ,Perim:5:2,'.');

This ends the program

End.

You might be interested in
The sheep in the image below is an example of which of the following?
n200080 [17]

Answer:

balanced space.

Explanation:

This is a edu guess.

5 0
3 years ago
Can someone tell me 5 facts about Registers and RAM, please?
Maslowich

\int\limits^a_b {x} \, dx \left \{ {{y=2} \atop {x=2}} \right.  \lim_{n \to \infty} a_n \neq \neq \geqAnswer:

A register is a temporary storage area built into a CPU. ... The instruction register fetches instructions from the program counter (PC) and holds each instruction as it is executed by the processor. The memory registers are used to pass data from memory to the processor.

PLS MARK BRAINLIEST!!!

PLEASE

:

3 0
3 years ago
When a program lets the user know that an invalid input choice has been made, this is known as _________________.
Leto [7]

Answer:

The correct answer for the given question is " input validation"

Explanation:

Input validation is also known as data validation which is used for validate or test the user input .

The example of input validation in c++ programming

#include <iostream> // header file

using namespace std;  

int main()  // main function

{

 int a1; // variable declarartiomn

 cout << "Enter the age: ";

 cin >> a1;

 if(a1> 18) // validate user input

 {

  cout << "You are eligible for vote :";

 }

return 0;

}

In this program we input a age from user and validate this user input that .If user enter age > 18 then it will eligible for vote.

output

21

You are eligible for vote

5 0
4 years ago
The simple mixture of flour and water​
kykrilka [37]

Answer:

Batter is a simple mixture of flour and water is used to make crepes and pancakes. It is also used to coat fruit for fritters.

8 0
2 years ago
Read 2 more answers
_____ and area calculations are used frequently to estimate costs for maintence and renovation projects
HACTEHA [7]
Could be a variety of things

Budget
Pricing
Resources
Labor
6 0
3 years ago
Other questions:
  • I need help please?!!!
    15·1 answer
  • If every element of a list must beprocessed, a(n) __________is more efficient than a(n)______.
    13·1 answer
  • The term "Cloud" refers to what option(s) below? (Select all that apply)
    13·1 answer
  • CALL US ☏1≠855☼241☼6569 Aol mail not working on windows 10 ||123||**USA***
    6·1 answer
  • Which part holds the "brains" of the computer?
    13·1 answer
  • JPG is considered a lossy file format. What does this mean?
    15·2 answers
  • Draw a flowchart to input a number and find out whether it is divisible by 7 or not​
    6·1 answer
  • Mark and his team are working on a project that is due for delivery in the next few days. The team is using project management t
    10·1 answer
  • Please help me on this coding problem :)
    6·1 answer
  • Urgent. I will mark you brainliest. explain why cyber warfare is a real threat.​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!