Question

I do NOT want C++ code, Unless there is just no other language in your head....

I do NOT want C++ code, Unless there is just no other language in your head. I want pseudo code. Something you could give a 4th grader and they could do the work following your pseudo code. Or your English language instructions. If at some point it is just easier to write a line of C++ code. O.K. but I would prefer broken English. I expect Pseudo code for both problems. I expect a discussion of your general or overall approach to the problem. Hint, keep notes as you solve the problems. It is O.K. to say go to this routine/function/sub-routine to calculate this thing. But you need to define fully the parameters and the result. And of course then you need to supply the pseudo code for the routine. The PROBLEMS DaysIntoYear: How many days into a year. Given a year and a date ( monthja dn day how many days is it from the start of the year to the date? Why do we care about the Year? Feb 4, 2019 is the 31+4 th day into the year ( 35 ) NthTermFibonacci: Given two numbers a and b. Both whole numbers. they are the first two numbers in a Fibonacci sequence. return the nth value. So if n = 1 just add a and b. If asked for the third number in the sequence compute it and return it. so if a = 6 and b = 10. And you are asked for the third number beyond A and B the answer is : 6, 10, 16, 26, 42 so the third number beyond the 6 and the 10 is 42.

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
I do NOT want C++ code, Unless there is just no other language in your head....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • c++ Hi dear, Please do not write a code. i want you just draw the sequence...

    c++ Hi dear, Please do not write a code. i want you just draw the sequence of red-black trees. write which case (1-6) is being applied next each tree in the sequence show your work

  • This is Assembly Language...please i want you to give proper documentation or comment of every code...

    This is Assembly Language...please i want you to give proper documentation or comment of every code you write, so i can understand your code. Thank you! ** 2. Exchanging Pairs of Array Values Write a program with a loop and indexed addressing that exchanges every pair of values in an array with an even number of elements. Therefore, item i will exchange with item i+1, and item i+2 will exchange with item i+3, and so on.

  • I just want to clarify what I need help on (as I do not need help...

    I just want to clarify what I need help on (as I do not need help on the full question). Specifically what I want is to be able to set the equations given to me so that I can solve for n using a root finding algorithm (which I already have). As I understand, I need something of the form | Tn(x) - e^x | = epsilon machine = (x^(n+1) / (n+1)!) and all I need from there is to...

  • How do I write this in the c++ language? 1. (10 points) Write a program to...

    How do I write this in the c++ language? 1. (10 points) Write a program to implement Heapsort. The input should be an array of size at least 15. Have the user enter the values or you can specify your own array (unsorted). The output should be the final sorted array AND print out the values in the max heap (just the heap, NOT the full array) after each MAX-HEAPIFY (after BUILD- MAX-HEAP i.e. don't print output in BUILD-MAX-HEAP) in...

  • I need this code to be written in C language. Also, I'm using Xcode on mac...

    I need this code to be written in C language. Also, I'm using Xcode on mac so I need the steps in order to know how to do it. Please save the program with the name 'files.c' Write a program that merges two files as follows. The two files are in the docsharing which you can download it. One file will contain usernames (usernames.txt): foster001 smith023 nyuyen002 The other file will contain passwords (passwords.txt): x34rdf3e P43e4rdd w32eds22 The program should...

  • Create a complete pseudo-code program in C++ to do the following using the PseudoCode language developed...

    Create a complete pseudo-code program in C++ to do the following using the PseudoCode language developed in class using Absolute Addressing. There is 1 deliverable: 1. You should include the input cards shown below as a test. THE PROGRAM: First you will read in a value N which holds the number of values to be read in. (so if N is 20 then there will be 20 more cards to read in.) Read in N values into an array. Bubble-Sort...

  • please just reply with the answer to the question. i do not want to see any...

    please just reply with the answer to the question. i do not want to see any number or equations, just the number answer to the question. Question 1 1 pts Let's say your clients currently spend $80,000 (in today's dollars), and they want to spend 90% of that in retirement. If your clients are currently 44 years old and want to retire when they are 65, how much will their first year of retirement expenses be (in future dollars)? Assume...

  • I need this code in java. Loops do just what they sound like they should -...

    I need this code in java. Loops do just what they sound like they should - they perform a statement again and again until a condition is fulfilled. For this lab you will be practicing using loops, specifically a for loop. The for loop takes the form of: for(/*variable initialization*/;/*stop condition*/; /*increment*/){ //statements to be done multiple times } Task Write an application that displays every perfect number from 2 through 1,000. A perfect number is one that equals the...

  • please do not answer the guided question I just want to know the main objective of...

    please do not answer the guided question I just want to know the main objective of this case study and if you could provide background information about the company thank you ㄈ 7. Shan On Elevator Elevators generally break down at random times and for different reasons. Elevator maintenance contractors must have trained service personnel to provide emergency service. Shan On Elevator has 200 service personnel to maintain 1,000 elevators. routine and Suppose that Shan On has received a contract...

  • USING C LANGUAGE _Design_ a program that asks the user to answer (easy) multiplication problems. It...

    USING C LANGUAGE _Design_ a program that asks the user to answer (easy) multiplication problems. It is up to you how many math problems you want it to present. The numbers should be chosen at random. The program will then display the user stats: - number of problems answered correctly out of the total - percent correct - grade letter (>= 90 is A, >= 80 is B, >= 70 is C, >=60 is D, < 60 is F)   Example...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT