Call a recursive function

Assignment Help Basic Computer Science
Reference no: EM132322808

Assignment make a menu driven program with the following options

  • to call a recursive function, which raise x to the power n
  • must work for negative n as well as positive n. ( x - n = 1/ x n )
  • ask a user for the values of x and n
  • to call a recursive function to add the first n terms of the series 1+1/2+1/3...1/n 
  • function output sample: 1+1/2+1/3+1/4= 2.0833 should be printed from within the recursive function; do not create a separate function to print the series
  • to call a recursive function to add the first n terms of the series 1/n +... 1/3 + 1/2 +1
  • function output sample 1/4 + 1/3 + 1/2 +1 =2.0833 should be printed from within the recursive function; do not create a separate function to print the series
  • to quit

Notes:

  • Ask a user for the values of n and x
  • Validate all user inputs
  • User should be able to run the menu as many times as user wants
  • Include your output with all your test data as comments after main or as a separate *. txt file in the same folder as your file with main
  • Zip the entire project folder and submit here
  • Do not forget to include your name and lab # as a comment. Last name first please.

Reference no: EM132322808

Questions Cloud

Discuss the key characteristics for the star schema : The star schema and the snowflake schema are ways to organize data marts or entire data warehouses using relational databases.
Summarizing a court interpretation in a case : Summarizing a court's interpretation in a case involving online protection of a patent. Cite both the case and statute using standard legal notation.
Concepts of variables and constants in performing some : How do you use the concepts of variables and constants in performing some of your routine tasks?
Two proposals using information technology solutions : We are required to make two proposals using Information Technology solutions to improve the business.
Call a recursive function : Assignment make a menu driven program with the following options
Evaluate alternatives to the company self-hosting the site : Discuss what it will take to build a Web architecture, move an existing Website with minimal downtime, and provide a disaster recovery solution to ensure.
Summary of the data analysis including a brief introduction : using the visualizations created discuss the findings from the data set. In this discussion you should explain what each visualization shows
Discuss the outcome of the edward snowden effect : In 200 words or less discuss the outcome of the Edward Snowden effect on Cybersecurity. The response must be typed, single spaced.
Identify optimal number of electives to offer in MBA program : Looking for a model that will allow us to identify the optimal number of electives to offer in our evening MBA program, given varying cohort sizes

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain the evidence of an association

Vineyards again. Instead of Age, perhaps the Size of the vineyard (in acres) is associated with the price of the wines.

  Write a program to evaluate the arithmetic statement

By using an accumulator type computer with one address instructions3-By using a general register computer with two address instructions4- by using a stack-organized computer with zero-address operation instructions

  Engage in a variety of activities

Looking for appropriate career options requires you to engage in a variety of activities, including performing a self-assessment

  Describe how to connect the spi0 pins for the hcs12

Describe how to connect the SPI0 pins for the HCS12 and this peripheral device and write an instruction sequence to configure the SPI subsystem properly for data transfer. Assume that the E-clock frequency is 24 MHz.

  Monitoring and auditing policy in order

Analysis of the need and structure of an ongoing monitoring and auditing policy in order to ensure compliance

  Describe an algorithm of the ford-fulkerson type

If the supplies si and the arc flow bounds bij and cij are integer, your algorithm should be guaranteed to find an integer feasible solution (assuming at least one feasible solution exists). Hint: Use the conversion to a max-flow problem of Fig. 3..

  Research relevant software for a career of your choice

Share the software and the system requirements for it. Why is the software necessary for the career that you chose?

  Understand the concept of bootstrapping

It is essential for any entrepreneur to understand the concept of bootstrapping. Bootstrapping is doing anything and everything to conserve capital for only the things that generate revenue.

  List and explain briefly mean-median

1. List and explain briefly mean, median, mode, and standard deviation. Give an example of when it each term could be used in a real-life situation.

  Kris corporation as an information technology

For this assignment, assume you have been hired by Kris Corporation as an Information Technology consultant. Kris Corporation manufacturers parts for the automotive industry.

  Write a function template that finds median of three values

The median of three numbers is the middle number after the three numbers have been arranged in increasing order. Write a function template that finds the median of three values.

  Explain why this statement is true

Write the pseudo code for a recursive version of the BFS traversal algorithm.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd