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

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 04:30
What is the process in which the software development team compiles information to determine the final product
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe what
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
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
question
Mathematics, 22.04.2021 14:00
question
Mathematics, 22.04.2021 14:00
question
Mathematics, 22.04.2021 14:00
question
Mathematics, 22.04.2021 14:00
question
Biology, 22.04.2021 14:00
Questions on the website: 13722362