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

  How does this new infection method affect the results

This is in contrast to an infection model where there is a probabilistic chance of infection based on every contact. How does this new infection method affect the results?

  Kind of attack a voip server may succumb to

As part of a data network, what kind of attack a VoIP server may succumb to?

  Increase the amount of a good produced

If the government wanted to increase the amount of a good produced, without the cost showing up in the budget

  What is the company stock price

If the required return is 12%, what is the company's stock price?

  Incomplete description of operations

Given the following incomplete description of operations, get all applicable business rules to establish entities, relationships, optionalities, connectivities, and cardinalities. Draw the fully labeled and implementable Crow's Foot ERD based on t..

  Find two separate data sets

Please help to find two separate data sets and write on paragraph on how they can be used for cyber research. Have at least five years of past data for one

  What will be your monthly payment

If you borrow $125,000 for 25 years at an APR of 6.5%. What will be your monthly payment?

  Describe the advantages of using project milestones

Why should extra effort be expended to meet a milestone when the final project's due date is months away?

  Descriptive analytics-predictive analytics

What is the difference between descriptive analytics, predictive analytics, and prescriptive analytics? Provide examples of each.

  Conversation with the user

How do I write a program that has a conversation with the user? The program must ask for both strings and numbers as input.

  What are the six components of information warfare?

What are the six components of information warfare?

  Rates of unemployment and inflation are measured

Define and explain how national income (GDP and National Income) and rates of unemployment and inflation are measured.

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