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
suter [353]
3 years ago
10

In this unit, you learned how to manipulate numbers and strings, acquire input from the user, perform data manipulations for var

ious types, and make decisions. You displayed the results for the user. You are able to plan and write programs, using the input-process-output model. You can test the results. In this project, you will plan and write a program to solve a math algorithm. Unlike the man in the picture, you will identify possible errors and handle them in your program.
Choosing Your Math Algorithm

Think of a math question that takes several steps to solve. It should not be a math question already programmed in the unit. Some examples are below, or you might think of your own ideas. The question should require input from the user, process the information, and display the results. You can choose your own algorithm. It does not need to be one of these.
Find the surface area of a cylinder.
Find the surface area of a pyramid.
Find the hypotenuse of a right triangle.

Your Task
Write a pseudocode plan for your program.
Write the code for your program.
Test your program. Run it at least three times with different inputs.
Save your program as a .txt file for you cannot upload a .py file.

Can someone please help, I’m now like 2 weeks behind because I’ve been stuck in this project.
Computers and Technology
1 answer:
e-lub [12.9K]3 years ago
4 0

Answer:

Sometimes you will tell the CPU to use the main memory, secondary memory, network, or the input/output devices. Digital Computing: It's All ...

You might be interested in
Which part of the cpu accepts data?
V125BC [204]

The answer is the Processor register.

5 0
3 years ago
file Assume that a prototype of the part above was built from several cubes. The total volume of the part is 0.54675 in.3. What
Rina8888 [55]
The correct answer is D
5 0
3 years ago
1. Implement the function dict_intersect, which takes two dictionaries as parameters d1 and d2, and returns a new dictionary whi
stich3 [128]

Answer:

1  

def dict_intersect(d1,d2): #create dictionary

  d3={} #dictionaries

  for key1,value1 in d1.items():       #iterate through the loop  

      if key1 in d2:   #checking condition

          d3[key1]=(d1[key1],d2[key1])   #add the items into the dictionary  

  return d 3

print(dict_intersect({'a': 'apple', 'b': 'banana'}, {'b': 'bee', 'c': 'cat'})) #display

2

def consolidate(*l1):  #create consolidate

  d3={} # create dictionary

  for k in l1:       #iterate through the loop

      for number in k:   #iterate through  the loop                               d3[number]=d3.get(number,0)+1   #increment the value

             return d 3 #return

print(consolidate([1,2,3], [1,1,1], [2,4], [1])) #display

Explanation:

1

Following are  the description of program

  • Create a dictionary i.e"dict_intersect(d1,d2) "   in this dictionary created a dictionary d3 .
  • After that iterated the loop and check the condition .
  • If the condition is true then add the items into the dictionary and return the dictionary d3 .
  • Finally print them that are specified in the given question .

2

Following are  the description of program

  • Create a dictionary  consolidate inside that created a dictionary "d3" .
  • After that iterated the loop outer as well as inner loop and increment the value of items .
  • Return the d3 dictionary and print the dictionary as specified in the given question .

5 0
4 years ago
One reason for using social media is to develop social and professional contacts. True or false?
xxMikexx [17]
I would say this answer is true.
7 0
3 years ago
Read 2 more answers
If you were at the front of a long line of people, stepped onto a chair and took a
WINSTONCH [101]
They are closer to the people and they work than a senior management
7 0
3 years ago
Other questions:
  • Assume you have functions f and g such that f(n) is O(g(n)). For each of the following statements, decide whether you think it i
    12·1 answer
  • Which technology was used in fourth generation of computer​
    13·2 answers
  • Which statement describing an operating system's Search feature is true?
    5·1 answer
  • What is information associated with a document to help describe that document called?
    14·1 answer
  • Premise: Tracy has a file that contains a list of actors and the movies in which they acted. She wants to know the top 3 ranked
    8·1 answer
  • You CANNOT add text to any filled shape.<br> O True<br> False
    8·1 answer
  • How to follow accounts on brainy
    11·1 answer
  • Give five examples of physical networking.
    15·1 answer
  • Write down the different types of testing with their definition.
    11·1 answer
  • Using robots to replace workers in factories is an example of which of the following forms of information processing systems? a.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!