The document discusses the various mathematical operations and properties available in the Math object in Microsoft Small Basic, including Sin, Cos, GetRandomNumber, SquareRoot, Remainder, Pi, Abs, Floor, Log, Min, and more. It provides examples of using each one to perform common mathematical tasks like calculating areas, averages, logarithms, remainders, and generating random numbers. The overall document is intended to teach the reader how to utilize the different functions of the Math object in their Small Basic programs.
Writea program that defines a template function named add(). Thisfunction tak...licservernoida
Writea program that defines a template function named add(). Thisfunction takes two
arguments, add two variables and then return thesum.
Inmain function, define two variables of type int, two variables oftype float and two objects
callthe add() function three times for these different datatypes.
Note:String is auser
-
When template function will be calledto add two objects of type String then it must
concatenate
twostrings.
Youroutput should look like this:
SampleOutput:
Enter twointeger values to be added
EnterFirst value:12
EnterSecond value:25
Enter twofloat values to be added
EnterFirst value:13.5
EnterSecond value:14.2
Enter twoStrings to be added
EnterFir
st value:Virtual
EnterSecond value:University
Additionof two variables of different data types
Sum ofvalues of type int = 37
Sum ofvalues of type float = 27.7
Sum ofvalues of type String = VirtualUniversity
Writea program that defines a template function named add(). Thisfunction tak...licservernoida
Writea program that defines a template function named add(). Thisfunction takes two
arguments, add two variables and then return thesum.
Inmain function, define two variables of type int, two variables oftype float and two objects
callthe add() function three times for these different datatypes.
Note:String is auser
-
When template function will be calledto add two objects of type String then it must
concatenate
twostrings.
Youroutput should look like this:
SampleOutput:
Enter twointeger values to be added
EnterFirst value:12
EnterSecond value:25
Enter twofloat values to be added
EnterFirst value:13.5
EnterSecond value:14.2
Enter twoStrings to be added
EnterFir
st value:Virtual
EnterSecond value:University
Additionof two variables of different data types
Sum ofvalues of type int = 37
Sum ofvalues of type float = 27.7
Sum ofvalues of type String = VirtualUniversity
Write a Java program Lab42.java: implement a superclass Account with the prot...hwbloom34
Write a Java program Lab42.java: implement a superclass Account with the protected data member double amount. Constructor takes no
arguments and intializes amount to 0.00. Write the following member methods:
* void deposit(float m) which adds m to amount
* void withdraw(float m) which subtracts m from amount if there are sufficient funds.
Declare two abstractmethods:
* abstract public void show()
* abstract public double dailyInterest()
Create two subclasses: Saving and Checking. Provide a method dailyInterest that computes and adds the daily interest. Checking accounts yield
interest of 3% on balances over $1000. Savings accounts yield interest of 6% on the entire balance. Method show prints the current balance. Your
driver class Lab42 should create an array Account A[] = new Account[2]. Assign object of type Saving to A[0] and object of type Checking to
A[1]. Test all member methods.
Intelligent Character Recognition Engine: This is the final output of several months of hardworking efforts that results by our successful research. And this is the Core Engine Architecture we have implemented and deployed that predicting quite impressively like a magic - the power of Neural Network.
Thanks to Open Computer Vision.
Please visit/communicate CIBL Technology Consultant Limtied to have a demo or to get your one.
Tech Talk - JPA and Query Optimization - publishGleydson Lima
Behind JPA ans SQL Query Optimizations. Talk about PostgreSQL Indexes and Query Planner and Java Persistence API Performance Tips. Hibernate. Java. PostgreSQL. Spring Boot. Spring JPA.
Greedy with Task Scheduling Algorithm.pptRuchika Sinha
A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally optimal solutions that approximate a globally optimal solution in a reasonable amount of time
Write a Java program Lab42.java: implement a superclass Account with the prot...hwbloom34
Write a Java program Lab42.java: implement a superclass Account with the protected data member double amount. Constructor takes no
arguments and intializes amount to 0.00. Write the following member methods:
* void deposit(float m) which adds m to amount
* void withdraw(float m) which subtracts m from amount if there are sufficient funds.
Declare two abstractmethods:
* abstract public void show()
* abstract public double dailyInterest()
Create two subclasses: Saving and Checking. Provide a method dailyInterest that computes and adds the daily interest. Checking accounts yield
interest of 3% on balances over $1000. Savings accounts yield interest of 6% on the entire balance. Method show prints the current balance. Your
driver class Lab42 should create an array Account A[] = new Account[2]. Assign object of type Saving to A[0] and object of type Checking to
A[1]. Test all member methods.
Intelligent Character Recognition Engine: This is the final output of several months of hardworking efforts that results by our successful research. And this is the Core Engine Architecture we have implemented and deployed that predicting quite impressively like a magic - the power of Neural Network.
Thanks to Open Computer Vision.
Please visit/communicate CIBL Technology Consultant Limtied to have a demo or to get your one.
Tech Talk - JPA and Query Optimization - publishGleydson Lima
Behind JPA ans SQL Query Optimizations. Talk about PostgreSQL Indexes and Query Planner and Java Persistence API Performance Tips. Hibernate. Java. PostgreSQL. Spring Boot. Spring JPA.
Greedy with Task Scheduling Algorithm.pptRuchika Sinha
A greedy algorithm is any algorithm that follows the problem-solving heuristic of making the locally optimal choice at each stage. In many problems, a greedy strategy does not produce an optimal solution, but a greedy heuristic can yield locally optimal solutions that approximate a globally optimal solution in a reasonable amount of time
This was the second in a series of symposia to be convened
at NLM, in partnership with the Friends of the National
Library of Medicine (FNLM) and Mentoring In Medicine,
a non-profit organization that works with students in disadvantaged areas, with a mission to diversify the biomedical
workforce by mentoring and introducing underrepresented
students to careers in science and health care.
Develop a system flowchart and then write a menu-driven C++ program .pdfleventhalbrad49439
Develop a system flowchart and then write a menu-driven C++ program that uses user-defined
functions arrays, and a random number generator.
Upon program execution, the screen will be cleared and the menu shown below will appear at
the top of the screen and centered. The menu items are explained below.
Help Smallest Largest Quit
H or h ( for Help ) option will invoke a function named help() which will display a help screen.
The help screen(s) should guide the user how to interact with the program, type of data to be
used, and what results would the program produce. Each help screen should remain on the
monitor until the user strikes any key. Once the user completes reading the help() screens,
striking any key will clear the screen and the menu is displayed again.
The main() function will declare an array of 60 elements. The elements are of type double. The
menu options S and L, will ask the user for the actual number of elements for the array. The
program must verify that the actual number of elements does not exceed 60 and is not a negative
number or 0. Your code must check for these.
S or s ( for Smallest ) option will invoke a function named smallest( ) which will prompt the user
for the number of elements for the array to be examined using the function sizeOfArray( ) which
will read and validate the desired array elements and returns it to the calling function. The
program will then use the returned size of the array to fill the array using the number generator
functions shown at the end of this assignment. Your program will ask the user for the range of
values for the elements of the array and uses these numbers in a random generator function to fill
the array. Once the array is filled, the program will call the function findSmallest( ) which will
find and return the smallest number in the array to the calling function. The program will then
call the function frequency(), that will compute and return the frequency of occurrence of the
smallest number. The program will then display the array elements, the smallest number, and its
frequency of occurrence using the function display( ), in the format shown below. The output
shown is for an array of six elements with an array identifier a.
a[0] = xxxx.xx
a[1] = xxxx.xx
a[2] = xxxx.xx
a[3] = xxxx.xx
a[4] = xxxx.xx
a[5] = xxxx.xx
Smallest no. = xxxx.xx Frequency = xx
Note that for the array elements, two digits after the decimal point is required (i.e., 365.24) and
the frequence of occurrence is of type integer.
The function prototypes to be used are as follows:
void smallest(double s[], int size);
where s is the original array declared in the main() function and size is the maximum array size
specified (60 elements in our case).
//gets the desired array size and returns it
int sizeOfArray(void);
//finds the smallest number in the array and returns it via the return statement.
double findSmallest(double s[], int myS);
//where s is the specified array name and myS is the desired size of the array.
TOPIC:-
SCIENTIFIC CALCULATOR
PURPOSE:-
To create scientific calculator class to perform the task related to scientific calculations. Which include finding square or cube etc.
The scientific calculator perform following task:-
1. Determine the square of the number.
2. Determine the square root of the number
3. Determine the first number power of the second number
4. Determine the factorial of a number
5. Determine the sin, cos and tan value of the number.
6. Determine the logarithm, natural logarithm and exponential of the number.
I am Baddie K. I am a C++ Homework Expert at cpphomeworkhelp.com. I hold a Masters in Programming from The University of Queensland. I have been helping students with their homework for the past 9 years. I solve homework related to C++.
Visit cpphomeworkhelp.com or email info@cpphomeworkhelp.com. You can also call on +1 678 648 4277 for any assistance with C++ Homework.
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
Chapter 8
Exercise
1.
Design an application that accepts 10 numbers and displays them in descending order.
4. The village of Ringwood conducted a census and created records that contain household data, including income. Ringwood has exactly 75 households. Write a program into which a village statistician can enter each of the 75 household income values, and determine the mean and median house-hold income.
13. Your student disk contains fi les named DEBUG08- 01. txt, DEBUG08- 02. txt, and DEBUG08- 03. txt. Each fi le starts with some comments that describe the problem. Comments are lines that begin with two slashes (//). Following the comments, each fi le contains pseudocode that has one or more bugs you must fi nd and correct.
08-01
// This application reads 10 numbers
// and sorts them, and displays the three highest numbers
start
Declarations
num SIZE = 10
num number
num numbers[SIZE]
num count
getReady()
while count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter a number "
input number
return
detailLoop()
numbers[SIZE] = number
count = count + 1
output "Enter a number "
input number
return
finish()
sort()
output "The highest three are ", numbers[0], numbers[0], numbers[0]
return
sort()
num x = 0
num y = 0
num COMPS = count - 1
while y < COMPS
x = 0
while x < COMPS
if numbers[x] < numbers[x + 1] then
swap()
endif
x = x + 1
endwhile
y = y + 1
endwhile
return
swap()
num temp
temp = numbers[x + 1]
numbers[x + 1] = numbers[x]
numbers[x] = temp
return
08-02
// This application reads student typing test data
// including number of errors on the test, and the number
// of words typed per minute. Grades are assigned based
// on the following table:
//
Errors
// Speed
0
1
2 or more
// 0–30
C
D
F
// 31–50
C
C
F
// 51–80
B
C
D
// 81–100
A
B
C
// 101 and up
A
A
B
start
Declarations
num MAX_ERRORS = 2
num errors
num wordsPerMinute
num grades[5][3] = {"C", "D", "F"},
{"C", "C", "F"},
{"B", "C", "D"},
{"A", "B", "C"},
{"A", "A", "B"}
num LIMITS = 5
num speedLimits[LIMITS] = 0, 31, 51, 81, 101
num row
output "Enter number of errors on the test "
input errors
if errors = MAX_ERRORS then
errors > MAX_ERRORS
endif
output "Enter the speed in words per minute "
input wordsPerMinute
while row < LIMITS AND wordsPerMinute >= speedLimits[row]
row = row + 1
endwhile
row = row - 1
output "Your grade is ", grades[errors][row]
stop
08-03
This application reads sales data for an automobile dealership.
// Up to 100 sale amounts can be entered. The entered sale amounts
// are sorted so the median sale can be displayed.
start
Declarations
num SIZE = 100
num QUIT = 99999
num saleAmount
num sales[SIZE]
num count = 0
num middlePosition
num x
num y
num temp
num comps
getReady()
while saleAmount count < SIZE
detailLoop()
endwhile
finish()
stop
getReady()
output "Enter sale amount "
input saleAmount
return
detailLoop()
sales[x] = saleAmount
co.
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Albert Hoitingh
In this session I delve into the encryption technology used in Microsoft 365 and Microsoft Purview. Including the concepts of Customer Key and Double Key Encryption.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
JMeter webinar - integration with InfluxDB and GrafanaRTTS
Watch this recorded webinar about real-time monitoring of application performance. See how to integrate Apache JMeter, the open-source leader in performance testing, with InfluxDB, the open-source time-series database, and Grafana, the open-source analytics and visualization application.
In this webinar, we will review the benefits of leveraging InfluxDB and Grafana when executing load tests and demonstrate how these tools are used to visualize performance metrics.
Length: 30 minutes
Session Overview
-------------------------------------------
During this webinar, we will cover the following topics while demonstrating the integrations of JMeter, InfluxDB and Grafana:
- What out-of-the-box solutions are available for real-time monitoring JMeter tests?
- What are the benefits of integrating InfluxDB and Grafana into the load testing stack?
- Which features are provided by Grafana?
- Demonstration of InfluxDB and Grafana using a practice web application
To view the webinar recording, go to:
https://www.rttsweb.com/jmeter-integration-webinar
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
State of ICS and IoT Cyber Threat Landscape Report 2024 previewPrayukth K V
The IoT and OT threat landscape report has been prepared by the Threat Research Team at Sectrio using data from Sectrio, cyber threat intelligence farming facilities spread across over 85 cities around the world. In addition, Sectrio also runs AI-based advanced threat and payload engagement facilities that serve as sinks to attract and engage sophisticated threat actors, and newer malware including new variants and latent threats that are at an earlier stage of development.
The latest edition of the OT/ICS and IoT security Threat Landscape Report 2024 also covers:
State of global ICS asset and network exposure
Sectoral targets and attacks as well as the cost of ransom
Global APT activity, AI usage, actor and tactic profiles, and implications
Rise in volumes of AI-powered cyberattacks
Major cyber events in 2024
Malware and malicious payload trends
Cyberattack types and targets
Vulnerability exploit attempts on CVEs
Attacks on counties – USA
Expansion of bot farms – how, where, and why
In-depth analysis of the cyber threat landscape across North America, South America, Europe, APAC, and the Middle East
Why are attacks on smart factories rising?
Cyber risk predictions
Axis of attacks – Europe
Systemic attacks in the Middle East
Download the full report from here:
https://sectrio.com/resources/ot-threat-landscape-reports/sectrio-releases-ot-ics-and-iot-security-threat-landscape-report-2024/
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
15. The Pi Property The value of pi is an important aspect of some mathematical calculations. You can use the Pi property of the Math object to retrieve the value of pi in your calculations. Let’s use this property to calculate the area of the circle. output In this example, you use the Pi property of the Math object to retrieve the value of pi. Then you use this value in the formula to get the area of the circle.
16. The Abs Operation Abs is another useful operation provided by the Math object. Let’s check it out. With the help of the Abs operation, you can get the absolute value of the given number. For example, if you subtract a large number from a smaller number, it will result in a negative numeral. In this example, you subtract two numbers. If the first number is smaller than the second, Abs operation returns a positive number.
17. The Floor Operation While creating your Small Basic program, how can you get the integer value of a decimal number? That’s what the Floor operation is created for. It gives an integer value which is less than or equal to the specified decimal number. Let’s see how you can use this operation in a program to calculate a student’s average grade. In this example, you enter the grades received by a student in six subjects. Then, you use the Floor operation to get the student’s average as an integer value.
18. The Log Operation While doing complex calculations, you often need the log value of a particular number. The Math object in Small Basic offers the Log operation to get the logarithm (base 10) value of the specified number. In this example, you use the Log operation to get the log of 22.3.
19. The GetRandomNumber Operation Now, let’s discuss the GetRandomNumber operation of the Math object. You can use this operation to get a random number between 1 and the specified maximum number. Let’s use this operation in a program. In this program, you draw the ‘*’ shape on the graphics window in different sizes and at different locations. You first set the height, width, and background color of the graphics window. Then you use the GetRandomNumber operation to set the font size. The font size will be between 1 and 30 because you have specified 30 as the parameter for the GetRandomNumber operation. Next, you use this operation to set the x- and y-coordinates of the asterisks at random.
20. The Min Operation The Math object provides another operation called the Min operation. You can use this operation to compare two numbers and get the smaller number of the two. Let’s apply this operation in a program. In this example, you accept two numbers and use the Min operation to compare the two numbers and display the smaller number in the text window. You also ensure that if the entered numbers are equal, the text window displays the statement “These numbers are the same.”
21. The SquareRoot Operation Let’s check out the SquareRoot operation of the Math object. You can use this operation to get the square root of a specified number. In this example, you enter a number and use the SquareRoot operation to get its square root.
22. The Remainder Operation Let’s look at the Remainder operation of the Math object. You can use this operation to get the remainder in a division problem. In this program, you want to check whether a number is even or odd. You use the If condition to check if the entered number is completely divisible by 2 (the remainder is 0). If so, the number is an even number; otherwise, it is an odd number. To check the remainder, you use the Remainder operation of the Math object.
23. Let’s Summarize… Congratulations! Now you know how to: Use different properties of the Math object. Use different operations of the Math object.
24. It’s Time to Apply Your Learning… Write a program to draw circles of different sizes in the graphics window. Set the size of the circle by using the area of the circle and randomize the x- and y- coordinates of the circle. Using the GetRandomNumber operation, write a program to move and rotate a rectangle in a random manner.
Editor's Notes
Slide Notes:You can use the Sin operation to get the sine of the specified angle in radians.You can use the ArcSin operation to get the angle in radians, given the sin value.You can use the GetDegrees operation to convert the value of an angle from radians to degrees.You can use the Cos operation to get the cosine of the specified angle in radians.Code:TextWindow.WriteLine("Enter the angle in degrees and get the sine of the angle:")number = TextWindow.Read()TextWindow.WriteLine("The sine of the angle is " + Math.Sin(number))TextWindow.WriteLine("The arcsine of the angle is " + Math.ArcSin(Math.Sin(number)))TextWindow.WriteLine("The angle in degrees is " + Math.GetDegrees(Math.ArcSin(Math.Sin(number))))TextWindow.WriteLine("Enter the angle in degrees and get the cosine of the angle:")number = TextWindow.Read()TextWindow.WriteLine("The cosine of the angle is " + Math.Cos(number))
SlideNotes: The Pi property of the Math object returns the value of pi, which is 3.14.Code:TextWindow.Write("Enter radius of a circle:")Radius = TextWindow.Read()Area = Math.Pi * Math.Power(Radius, 2)TextWindow.WriteLine("Area of the Circle is " + Area)
Notes:You can use the Abs operation of the Math object to get the absolute value of a number. For example, if the given number is -50, the Abs operation will return the value as 50.Code:TextWindow.WriteLine("Enter two numbers for subtraction: ")Number1 = TextWindow.Read()Number2 = TextWindow.Read()Substraction = Number1 - Number2Textwindow.WriteLine("The answer is " + Math.Abs(substraction))
Code:TextWindow.Write("Enter the name of the student: ")Name = TextWindow.Read()TextWindow.WriteLine("Enter the student's marks in six subjects:")For I = 0 To 5 Subject[i] = TextWindow.Read() Total = Total + Subject[i]EndForPercentage = Total / 6TextWindow.WriteLine("Total Marks:" + Total)TextWindow.WriteLine("Percentage:" + Math.Floor(percentage))
Code:TextWindow.WriteLine("Enter number to get its log value: ")Number = TextWindow.Read()TextWindow.WriteLine("Log value of " + Number + " is: " + Math.Log(Number))
Code:GraphicsWindow.BackgroundColor = "Black"GraphicsWindow.Width = 600GraphicsWindow.Height = 500For i = 0 To 800GraphicsWindow.FontSize = Math.GetRandomNumber(30) x = Math.GetRandomNumber(GraphicsWindow.Width) y = Math.GetRandomNumber(GraphicsWindow.Height)GraphicsWindow.DrawText(x, y, "*")Program.Delay(10)EndFor
Code:TextWindow.WriteLine("Enter the first number:")Number1 = TextWindow.Read()TextWindow.WriteLine("Enter the second number:")Number2 = TextWindow.Read()min = Math.Min(Number1, Number2)If (Number1 = Number2) ThenTextWindow.WriteLine(“These numbers are the same")Else TextWindow.WriteLine("The smaller number is:" + min) EndIf
Code:TextWindow.Write("Enter a number to get its square root: ")Number = TextWindow.Read()TextWindow.WriteLine("Square root of the entered number is " + Math.SquareRoot(Number))
Code:start:TextWindow.Write("Enter a number to check if it is even or odd: ")number = TextWindow.Read()If Math.Remainder(number, 2) = 0 ThenTextWindow.WriteLine(number + " is an even number.")ElseTextWindow.WriteLine(number + " is an odd number.")EndIfGoto start
Solution 1:Rectangle = Shapes.AddRectangle(100, 100)Shapes.Move(Rectangle, 250, 150)For i = 0 To Math.GetRandomNumber(30) Program.Delay(500)Shapes.Rotate(Rectangle, i * 25) EndForSolution 2:start:GraphicsWindow.Width = 600GraphicsWindow.Height = 450TextWindow.Write("Enter a radius for the circle: ")Radius = TextWindow.Read()Area = Math.Pi * Radius * RadiusHeight = Area / 2Width = Area / 2x = Math.GetRandomNumber(GraphicsWindow.Width / 2)y = Math.GetRandomNumber(GraphicsWindow.Height / 2)GraphicsWindow.DrawEllipse(x, y, Height, Width)Goto start