Enhance your
Want to see the full answer?
Check out a sample textbook solutionChapter 3 Solutions
Absolute C++
Additional Engineering Textbook Solutions
Starting Out with C++ from Control Structures to Objects (9th Edition)
Starting Out with Python (4th Edition)
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
Starting Out With Visual Basic (8th Edition)
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
- Going missing Some calculations involving blank values may give different results to what you might expect. For example, when you pass a blank value into the AND() function, it is treated as TRUE. This is often unhelpful. To make blanks behave in a sensible way in calculations, you must first convert them to be "not available" using NA(). This function takes no inputs, and returns a missing value. To convert a blank value to a missing value, use this pattern. =IF(ISBLANK(cell), NA(), cell) Instruction In column H, use AND() to find women who have kids and get benefits. In column I, convert the blanks in column G to missing values. In column J, again find women who have kids and get benefits, this time using column I rather than G. please show the formula used to "has kids and gets benefits" , "gets benefits with missing values", has kids and gets benefits". Thank you Is non-white Has over 12 years of school? Is married? Has kids? Has young kids? Is head of household? Gets…arrow_forwardDo it with Programmingarrow_forwardUsing regular expression, return the last four digits in a phone number. Create a function to demonstrate how you would go about doing this (pass the phone number as the function parameter)arrow_forward
- Question 6 Calculate and print the shaded area for the given rectangle below in function shadedArea (). Height and length are passed to the function through its parameter. Formula: Rectangle = length x height Triangle = ½ x length x heightarrow_forwardOver the years, people have created a few nicknames for me. One that sticks without me telling me to call me that name is "Denck." It works great with anyone whose name ends with an "er". We are going to create a function called "nickName" which takes in one parameter. This parameter stores the name you want to create the nickname for. If the name ends with an er, return the name with the er removed. If the name does not have an er then return the full name back to the program.arrow_forwardThree rectangles have to be drawn in a blackboard. Get the x and y coordinate values of the three rectangles from the person who is going to draw the rectangle, Write a function to find the area of these rectangles and print it in the calling function.arrow_forward
- Write a function that takes a positive integer num and calculates how many dots exist in a pentagonal shape around the center dot on the Nth iteration. In the image below you can see the first iteration is only a single dot. On the second, there are 6 dots. On the third, there are 16 dots, and on the fourth there are 31 dots. Return the number of dots that exist in the whole pentagon on the Nth iteration. Examples pentagonal (1) → 1 pentagonal (2) <-6 pentagonal (3) - 16 pentagonal (8) → 141arrow_forwardUsing python in jupyterlabarrow_forwardWrite a programmer defined function that calculates the volume of circular cone(see the below figure) using the following formula: volume t r² h Where, r is the radius and h is the height of the right circular cone. Give your function a suitable name and parameter list. Test your function by writing at least one function call with any appropriate values. Write the code at the space provided below. Optionally, upload your Python file at link below.arrow_forward
- b. Drawing a polygon Now that you can draw a circle, the next step is to draw a polygon inside the circle. Write a function DrawPolygon (N). The points of a N-sided polygon should be at angles 2π/N. You should add an extra point at the end so your polygon looks closed. Use your function to draw a 5-sided polygon (after drawing the circle): DrawCircle() DrawPolygon (5) plt.show() Write below your function to draw a N sided polygon and then use it to draw a 5-sided polygon. You can use dTheta = 2*np.pi/N in your function. ? Answer (start) # ANSWER ME Answer (end)arrow_forwardComplete and fix this code C program ONLY. Please finish the function printMap and updateMap to make the maze project work.Your code should move the cursor to the starting point located at the first 0 from the topand left border, and then use w, a, s, or d keys to control it to move to E. When E isreached, your code will print a message on the screen “Maze solved!!!”Please notice that part of the code is already provided, and you need to understand the code and finish it by sending screenshotsarrow_forwardWrite a function that computes the area of a triangle given the length of itsthree sides as parameters (see Programming Exercise 9 from Chapter 3).Use your function to augment triangle2 . py from this chapter so that italso displays the area of the triangle.arrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningC++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr