Write a program to enter RADIUS of a CIRCLE and PRINT AREA of TRIANGLE using Q Basic. (class 8)​

Answers

Answer 1
Answer:

Answer:

The program is as follows:

10 INPUT RADIUS, BASE, HEIGHT

20 CIRCLE = 3.142* RADIUS * RADIUS

30 TRIANGLE = 0.5* BASE * HEIGHT

40 PRINT CIRCLE

50 PRINT TRIANGLE

60 STOP

Explanation:

The program description doesn't tally;

In other words, it is impossible to calculate the area of a triangle using the radius of a circle.

So, I designed the program to get input for radius, base and height.

Get input for radius, base and height

10 INPUT RADIUS, BASE, HEIGHT

Calculate area of circle

20 CIRCLE = 3.142* RADIUS * RADIUS

Calculate area of triangle

30 TRIANGLE = 0.5* BASE * HEIGHT

Print area of circle

40 PRINT CIRCLE

Print area of triangle

50 PRINT TRIANGLE

End of program

60 STOP


Related Questions

WordArt styles allow you to add ____.
What is the full form of VPN?​
7. Write a program in C to display the string "ARRAY" in the following format : A AR ARR ARRA ARRAY
Which of the following recently developed technologies has NOT greatly increased the speed of information dissemination?a. smartphonesb. e-mailc. typewriterd. teleconferencingPlease select the best answer from the choices provided.
Norman is looking into an IDS/IPS solution for his command. The network engineers recommended he select a solution that requires packets to pass in and out of the device, and that it be connected in series with the outbound traffic flow. Norman should tell the sales engineer that he is interested in a __________________ IDS/IPS solution

You have been tasked with storyboarding a module for an e-learning project. The following might be useful:

Answers

For an e-learning project, storyboarding is a crucial step to outline the content, interactions, and visuals.

Where to start

Start by defining the learningobjectives and target audience. Then, structure the content into modules or lessons. Create a visual layout with placeholders for text, images, videos, and interactive elements like quizzes or assessments.

Ensure a logical flow and consistency in design. Include space for narration scripts, on-screen text, and notes for instructional designers. Collaboration with subject matter experts is essential. Finally, review and revise the storyboard to align with the project's goals and learning outcomes.

This well-organized plan will guide the development of engaging and effective e-learning modules.

Learn more about project at:

brainly.com/question/30901592

#SPJ1

Write the code for invoking a static method named sendDouble, provided by the DataTransmitter class. There is one double argument for this method. Assume that a double variable called x has already been declared and initialized to some value. Use this variable's value as an argument in your method invocation.

Answers

Answer:

The program to this question as follows:

Program:

public class DataTransmitter //defining class

{

double x=3.0; //define variable x.  

public static void sendDouble(double x) //define method sendDouble.

{

x=9.6; //change variable value

System.out.print("The value of x variable is :"+x); //print value.

}

public static void main(String[] args) //define main method

{

sendDouble(0.0); //calling function

}

}

Output:

The value of x variable is :9.6

Explanation:

The explanation of the above java program can be define as follows:

  • In the above java program a class is define that is "DataTransmitter" inside a class a double variable that is x is define which contain a double value that is "3.0".
  • In this class, a static method "sendDouble()" is defined. in the method, a double parameter is passed. inside a method, we change the variable value and print its value.
  • In main method is a sendDouble() function is called. In calling time a double value is passed in the function parameter.

Definition of main frame computers

Answers

A main frame computer is basically a huge computer. It is used by big companies for storage, server and communication. It can run multiple operating systems. They are designed to take high volume input and output managed by their company.

Answer: Mainframe computers or mainframes are computers used primarily by large organizations for critical applications; bulk data processing, such as census, industry and consumer statistics, enterprise resource planning; and transaction processing.

A web page without a bibliography, or sources, is an indicator of an unreliable site. Please select the best answer from the choices provideda. True
b. False

Answers

Answer:

True indeed

Explanation:

After replacing a modular hardware component inside computer case, the updated information about specific parameters of the new device can be stored in a. System BIOS b. Flash Memory c. Startup BIOS d. Secondary storage e. CMOS RAM

Answers

Hi

The updated information about specific parameters of the new hardware component can be stored in:

b. Flash Memory: Flash memory is a non-volatile storage medium that can retain information even when the power is turned off. It is commonly used to store firmware, such as the system BIOS, which contains instructions for the computer's hardware. When a new hardware component is installed, its specific parameters can be stored in the flash memory, allowing the computer to recognize and configure the component correctly.

e. CMOS RAM: CMOS RAM, or complementary metal-oxide-semiconductor random-access memory, is a type of volatile memory that stores the computer's basic hardware configuration, including information about installed devices. When a new hardware component is installed, its parameters can be stored in the CMOS RAM, enabling the computer to identify and interact with the component during the startup process.

It's important to note that both flash memory and CMOS RAM can be used to store updated hardware information, but they serve different purposes. Flash memory is typically used for firmware storage, while CMOS RAM is used for storing the computer's hardware configuration. So, either option b. Flash Memory or e. CMOS RAM could be a valid answer depending on the specific context of the question.

Final answer:

The System BIOS stores the specific parameters of a hardware component that has been replaced in a computer. It is built-in software that helps the computer to boot up by saving the components' information.

Explanation:

When you replace a modular hardware component inside a computer case, the updated specific parameters of the newly installed device are generally stored in the System BIOS (Basic Input Output System). The System BIOS consist of a built-in software that instructs the computer on how to perform a certain process like booting up. The BIOS stores all the hardware components information so it would know what it has to manage.

On the other hand, Flash Memory is a type of storage technology used for saving data, Secondary storage refers to storage devices like hard drives, Startup BIOS is the part of the BIOS responsible for booting the computer, and CMOS RAM stores the BIOS settings and other system time information.

Learn more about Hardware Component Replacement here:

brainly.com/question/34693607

#SPJ11

The most basic function of firewalls is to

Answers

A firewall is a network security system that monitors and controls the incoming and outgoing network traffic based on security rules that are configured by the network administrator.