Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use C programming. Thanks! Create a program to store weekly expenses and revenues over a period of time. The program should store the expenses

image text in transcribedPlease use C programming. Thanks!

Create a program to store weekly expenses and revenues over a period of time. The program should store the expenses and revenues in two global array variables. Values stored in the array at index k represent the total revenues/expenses recorded during the k^th week. Assume that the maximum number of weeks tracked is 250. Add the following functions to your program: A function that finds the total of all expenses incurred since week t for a given t. A function that records the total expenses and revenues for the next unrecorded week. It must check if there is still space in the array. A function that prints the number of weeks recorded A function that prints all revenues and expenses recorded A function that returns a pointer to the largest revenue recorded Organize the program so the function prototypes are presented first, and the definitions after the main function. Your program should keep asking the user to select one of the following options and execute the corresponding function based on the user choice: computed the total of all expenses, add a new expense/revenue, print the number of weeks recorded, print all revenues and expenses recorded, print the largest revenue recorded, or exit the program. Call your program finances'. Compile and test your program. Make sure your code is properly indented, your variables have meaningful names and macro definitions are used when appropriate. Submit through the handing system the source code finances

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management System MCQs Multiple Choice Questions And Answers

Authors: Arshad Iqbal

1st Edition

1073328554, 978-1073328550

More Books

Students also viewed these Databases questions

Question

3. Subtract: 5-33- A. 33 O B. 23 O C. 1% O D. 23

Answered: 1 week ago