Computers and Technology
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?​

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:10, katherineweightman
When copying and pasting text, the first step is move your cursor type the text select the copy command select the paste command
Answers: 2
image
Computers and Technology, 23.06.2019 01:30, marmar72
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
image
Computers and Technology, 23.06.2019 02:00, kayladgranger
Which demographic challenge is europe currently experiencing? a. an aging and decreasing population b. a baby boomc. an unequal distribution between males and females d. a large group of teenagers moving through the school system(i chose a but i'm unsure)
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, bre563
Research data that is presented using descriptive language is said to be
Answers: 2
Do you know the correct 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:

Konu
English, 22.01.2020 22:31
Konu
Mathematics, 22.01.2020 22:31