3 Do each of the following: a) Write the function header for a function `exchange` that takes two pointers to floating-point numbers `x` and `y` as parameters and does not return a value. b) Write the function prototype for the function in part (a). c) Write the function header for a function `evaluate` that returns an integer and that takes as parameters integer `x` and a pointer to function `poly`, which represents a function that takes an integer parameter and returns an integer. d) Write the
Tag: chegg questions
Write a python program that creates any regular polygon The number of sides of the polygon and the
Write a Python program that creates any regular polygon. The number of sides of the polygon and the color of the fill should be entered by the user. After the user provides those values, the turtle should draw the shape, fill it with the color entered, and disappear from the graphics window. The program should then ask the user if they want to draw another shape. If the user enters “yes”, the program repeats the process of asking for the input values and re-drawing the shape. This process will
Fall 2023 Stefan Salvi S12345678 Student Number 8 digits Assign 1 90 Assign 2 94 Assign 3 0
In C++,Write a program that defines a base class called FTP3015. It has the following grading scheme:- 3 assignments 100 points each 25%- Midterm 100 points 30%- Final 100 points 45%Based on the total grade of any student for the course, the letter grade of each student can be computed as follows:Any grade of 90 or more is an A, any grade of 80 or more (but less than 90) is a B, any grade of 70 or more (but less than 80) is a C, any grade of 60 or more (but less than 70) is a D, and any grade be
6 Write a program to determine the maximum height to which a projectile will travel if atmospheric
6. Write a program to determine the maximum height to which a projectile will travel if atmospheric resistance is neglected, for different initial velocities. This problem demonstrates the use of repetition controlled by a terminating limit. Method: The mass of the projectile is m, the initial velocity is v0 m/sec, the last initial velocity is vft/sec. From equations of motion: w=mg, Fz=maz. Applying these equations for the projectile results in the following equations: mg=mac gives ac=g. Initia
Java ProgrammingYou can do all this in one driver program Create an unsorted array containing 40
Java Programming:You can do all this in one driver program. Create an unsorted array containing 40 random integers between 1 and 999. Print the contents of this array using the toString method from Arrays class.Call the sort method from the Arrays class to sort this array. Print the contents of this sorted array using the toString method from Arrays class.Use this sorted array to perform the following binary searches.Try the binarySearch method from Arrays to search for a few target values in th
How to code in python the Vincent Van Goghs starry night such like thisWrite a Python program
How to code in python the Vincent Van Gogh’s starry night such like this:Write a Python program, called MonChefDoeuvre1237.py, to create a drawing inspired from the work of a known painter (artist) using the Python Turtle module and its built-in functions. You must create and use at least one turtle from this module to create your drawing. To illustrate what this assignment is asking you to do, here is the chef d’oeuvre created by a CMPT 120 student from a previous semester: nu option Run is sel