1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
creativ13 [48]
3 years ago
13

Write a program to draw a text-based graph of a mathematical function f(x)

Computers and Technology
1 answer:
Makovka662 [10]3 years ago
4 0
I have a very good example of the program you need written on Python. You can use this (sorry for bad tabulation):
import math import math def main(): function = input("Enter a function f(x):\n") x = 0 y = 0 for rows in range(10,-11,-1): for col in range(-10,11,1): x=col roundfx = round(eval(function)) if roundfx == rows: print("o", end="") if rows==0 and col==0 and not rows == roundfx: print("+", end="") if col == 0 and not rows == 0 and not rows == roundfx: print("|", end="") if rows==0 and not col==0 and not rows == roundfx: print("-", end="") else: if not rows == 0: if not col == 0: if not rows == roundfx: print(" ", end="") print() main()
You might be interested in
The methods of the Character class that begin with ____ return a character that has been converted to the stated format.
Pavel [41]

Answer:

most probably the answer is 'to'

6 0
3 years ago
Unlike bar codes and other systems, _____ devices do not have to be in contact with the scanner to be read.
UNO [17]

Answer:

radio frequency identification

Explanation:

7 0
3 years ago
Whats the difference between computers and tablets
inysia [295]

Explanation:

Tablets are more portable than any computer or laptop. They are very lightweight and can fit in a purse or small bag with relative ease. They are designed to be taken everywhere with you, thus the very definition of portable.

Storage Computer hard drives can be over one TB (terabyte). Even the most basic computer comes with a 250 GB (gigabyte) hard drive, which for many is more than enough storage for most users. Tablets come with built-in storage ranging from 8 GB to 128 GB. In some cases, an expansion slot may be available for adding additional storage.

Battery life The battery life even for the most efficient laptop is still not close to the battery life of a tablet. A tablet has a much smaller screen and has fewer components than a laptop computer, which makes for a longer battery life.

Operating System Desktop and laptop computers come with more fully featured operating system due to having the computing power and memory requirements. These operating systems support more than any tablet operating system. Tablets come with a more slimmed down operating system because of the limited computing power and memory. The Android OS and Apple iOS are adequate operating systems for tablet users, but not as complete as computer operating systems.

Boot time The latest computers running the latest operating systems have improved a lot on their boot time. However, are still slower than a tablet. Generally speaking, most tablets are much faster at booting than most computers.

Data entry and user input A computer uses a keyboard for data entry that most users are familiar with and comfortable using. The mouse is also available for easy scrolling and right-clicking. Tablets use an on-screen keyboard that is smaller than a standard computer keyboard, takes time to learn, and users with bigger fingers may have a hard time typing. Some tablets allow for an external keyboard, providing a more comfortable and familiar medium for typing.

Touch screen Although some laptops and desktops now support touch, most still have no touch screen support. All tablets support a touch screen, that's easier for new computer.

3 0
3 years ago
Read 2 more answers
A financially stable person is able to:
FinnZ [79.3K]
I think D. To save money cuz thats how financially stable people stay financially stable
7 0
3 years ago
Assume that you have created a class named DemoCar. Within the Main() method of this class, you instantiate a Car object named m
marysya [2.9K]

Answer:

It can be static, but it shouldn't, given the way it is invoked.

It can also be protected but <u>not</u> private.

Explanation:

The question is confusing, since the ComputeMpg() should be a public non-static member. Also, is this Java or C#?

5 0
3 years ago
Other questions:
  • Accessing programs and documents by way of icon
    12·1 answer
  • Write a C++ program that asks the user to enter his age. The program then should display the age in months:
    11·1 answer
  • Match the careers with the education required for each job
    5·1 answer
  • #Write a function called 'string_type' which accepts one #string argument and determines what type of string it is. # # - If the
    8·1 answer
  • How long is a subnet mask? (Please select one of the four options)
    5·1 answer
  • Assume we are testing a variable is_sunny in a while loop. is_sunny = “n”.
    13·1 answer
  • For a loop counter, the appropriate data type would be:
    9·1 answer
  • 7.2.6: First Character CodeHS
    9·2 answers
  • Select the correct answer.
    10·1 answer
  • Who is the father of computer​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!