Expenses Tracker Juliana is a shopaholic! Juliana needs a c++ software that help
ID: 3774850 • Letter: E
Question
Expenses Tracker Juliana is a shopaholic! Juliana needs a c++ software that helps her keep track of her shopping expenses. Every time Juliana buys a new outfit, she would like to add it to a list of expenses and checks if she has exceeded her allowance of 700$ per month. She also likes to view all her expenses in a specific month. Each time Juliana buys a new outfit, she will need to keep track of the outfit type (i.e., shirt), the outfit price and the month (i.e., 1 for January) in which she bought the outfit. Your program should display the following menu for Juliana: *****Welcome to Shopaholic Software**** Menu 1- Enter a new Purchase.
2-Track Spending per Month
3-View purchases per Month 0-Exit
1
Please enter month of purchase
1
Please enter Type of outfit purchased Dress
Please enter Price of outfit purchased 300
Menu 1- Enter a new Purchase.
2-Track Spending per Month
3-View purchases per Month 0-Exit 2
Please enter month of purchase 1
The amount of money spent this month is 300$
Menu 1- Enter a new Purchase.
2-Track Spending per Month
3-View purchases per Month 0-Exit
3
Please enter month of purchase
1
You purchased on Month 1 the following:
Dress for 300$
Menu 1- Enter a new Purchase.
2-Track Spending per Month
3-View purchases per Month 0-Exit
0
Your c++ program should allow Juliana to add as many purchases as she wants (hint: use Vectors to manage the purchases).
You will need to write two methods: 1) Write a method that returns the amount of money that Juliana spent for a specified month 2) Write a method that displays all the purchases of a specified month Your program needs to use the above methods to track the spending and to view the purchases per month.
Explanation / Answer
package inventory2; import java.util.Scanner; public class RunApp { public static void main(String[] args) { Scanner input = new Scanner( System.in ); Items theItem = new Items(); int number; String Name = ""; System.out.print("How many items are to be put into inventory count?: "); number = input.nextInt(); input.nextLine(); Items[]inv = new Items[number]; for(int count = 0; countRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.