subject
Computers and Technology, 24.05.2021 14:00 Geo777

Question 3 [40 marks] Write a program to draw a text-based graph of a mathematical function f(x). Use axis limits
of - 10 to 10 and only plot discrete points i. e. points with Integer value ordinates.
Sample I/O:
Enter a function f(x):
x+2
I
Use nested loops to print the entire area of the graph (i. e. an outer loop for rows and an
inner one for columns), keeping track of the current x and y values. Whenever the (rounded)
value of the function f(x), entered by the user, is equal to the current y value, output "*" (an
asterisk), otherwise, output either the appropriate axis character or a space.
NOTE: Remember to import math to enable the use of some mathematical functions.
How should the program support the entering of arbitrary functions?​

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 03:00, minelly1717
Your business be in google top rank. more the rank more the business leads. for best seo and digital marketing services be confident to contact you can get best seo solutions by assistance experts provide digital marketing, website development, seo expert services and social media internet seo expert services your branding solutions. seo expert services ,best seo expert services, online seo expert services,
Answers: 3
image
Computers and Technology, 23.06.2019 23:00, Maya629277
Lucas put a lot of thought into the design for his company's new white paper. he made sure to include repeating design elements such as color schemes and decorative images. his goal was to a. add symmetry b. create a unified publication c. provide consistency d. save money
Answers: 1
image
Computers and Technology, 24.06.2019 00:00, amy7233
Afashion designer wants to increase awareness about her brand. which network can she use and why she can use the blank to blank her products online. answers for the first blank: internet, extranet, or intranet answers for the second blank: market, design, and export
Answers: 1
image
Computers and Technology, 24.06.2019 00:10, roxymiller3942
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
You know the right answer?
Question 3 [40 marks] Write a program to draw a text-based graph of a mathematical function f(x). U...

Questions in other subjects: