Question

Your company needs you to create a program that estimates the amount of various supplies you need for a month based on past sales performance. This way the warehouse can be better prepared for your monthly stock requests. When your program runs, it will first ask you how many clients you have active for the month. Based on the number you provide, it will then perform calculations to estimate how many units of each product you need for the month. Finally, it will output this information.

Data and Information The following data regarding your past sales has been compiled. These are your yearly averages (meaningYour user interface should include the following: Input-the program should ask for: o the number of active clients for the mo

Data and Information The following data regarding your past sales has been compiled. These are your yearly averages (meaning you'll have to convert them to approximate your monthly averages). You may assume that your sales are constant throughout the year. Stock information (yearly averages): On average, every client orders 8600 sheets of Premium Copy paper each year 50% of your clients order 5400 sheets of 40-pound Letter Stock paper each year . 15% of your clients order 1300 sheets of Airstream Deluxe A4 paper each year Other information A ream of paper has 500 sheets of paper You must include five of your business cards in each order . Approximately 75% of your orders will be shipped. These orders require two shipping labels each. (The rest are picked up directly from the warehouse and do not need any shipping labels.) You can assume that each active client will place one order in a month
Your user interface should include the following: Input-the program should ask for: o the number of active clients for the month (assume this is always an integer) Output - the program should display: o The total number of reams of paper you need for the month (this should be the sunm of the reams of all the different types of paper) The total number of reams of Premium copy paper you need o The total number of reams of 40-pound letter stock paper you need o The total number of reams of Airstream Deluxe A4 paper you need o The total number of business cards you need o The total number of shipping labels you need Between the input and output, you will need to perform some mathematical calculations. Do not hide your work. In other words, do not do calculations outside the program and then use the results inside the program. All calculations needed to produce results should be visible and clear within your code.
1 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

MonthlyProductNeedjava X 1 package unionofvector; Console 3 2 public class MonthlyProductNeed 4. 6 static void Calculatestock

***********Start of java  code**********************
public class MonthlyProductNeed {
   public static void main(String[] args) {
       CalculateStock(15);// this is used to call the function with active client as 15
}

// function which is used to calculate the monthly stock requirement.
   static void CalculateStock(int activeClient)
   {
       int premiumCopyPaper;
       int premiumCopyPaperReam;
       int fourtyPoundlLetterStrockPaper;
       int fourtyPountlLetterStrockPaperReam;
       int airstreamDeluxA4paper;
       int airstreamDeluxA4paperReam;
      
       premiumCopyPaper=activeClient*8600;
       premiumCopyPaperReam=premiumCopyPaper/500;
      
       fourtyPoundlLetterStrockPaper=(activeClient/2)*5400;
       fourtyPountlLetterStrockPaperReam=fourtyPoundlLetterStrockPaper/500;
      
       airstreamDeluxA4paper=((activeClient*15)/100)*1300;
       airstreamDeluxA4paperReam=airstreamDeluxA4paper/500;
      
       int totalReamForMonth=premiumCopyPaperReam+fourtyPountlLetterStrockPaperReam+airstreamDeluxA4paperReam;
       int totalpaperOrderForMonth=premiumCopyPaper+fourtyPoundlLetterStrockPaper+airstreamDeluxA4paper;
       int totalNumberOfshippingLable=(totalpaperOrderForMonth*75)/100;
      
       System.out.println("Total Number of Ream of Paper for this month: "+totalReamForMonth);
       System.out.println("Total Number of Ream of premium copy paper : "+premiumCopyPaperReam);
       System.out.println("Total Number of Ream of 40 Pound Letter Strock Paper: "+fourtyPountlLetterStrockPaperReam);
       System.out.println("Total Number of Ream of Airstream Delux A4 paper: "+airstreamDeluxA4paperReam);
       System.out.println("total BusinessCard Required: "+totalpaperOrderForMonth *5);
       System.out.println("total Number Ofshipping Lable Required : "+totalNumberOfshippingLable);
      
   }
  
}

**********End of java code*************************

Add a comment
Know the answer?
Add Answer to:
Your company needs you to create a program that estimates the amount of various supplies you need...
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
  • You are running a business that sells office supplies. Your monthly lease on the space is...

    You are running a business that sells office supplies. Your monthly lease on the space is $3600. This past week, you sold 820 rulers for $1.25 each (they cost you $0.25 each), 900 reams of paper at for $7.99 per ream (they cost you $4 each), 172 computers at an average price of $674.99 (your cost: $497), and 86 printers at an average price of $109.95 (your cost: $89). Over the course of this week, you paid 4 part-time employees...

  • Write a C++ program to display yearly calendar. You need to use the array defined below...

    Write a C++ program to display yearly calendar. You need to use the array defined below in your program // the first number is the month and second number is the last day of the month. int yearly[12112] £1,31),2,28),(3,31),(4,30),(5,31),(6,30)7,313,(8,31),{9,30).10,31),11,30), 12,31]7;

  • 1. Miguel and Jake run a paper company. Each week they need to produce 1,000 reams...

    1. Miguel and Jake run a paper company. Each week they need to produce 1,000 reams of paper to ship to their customers. The paper plant's long-run production function is Q = 4K 0.75 0.25, where a is the number of reams produced, K is the quantity of capital rented, and L is the quantity of labor hired. The weekly cost function for the paper plant is C = 10K + 2L, where C is the total weekly cost. a....

  • Need help with this problem A company has two products: standard and deluxe. The company expects...

    Need help with this problem A company has two products: standard and deluxe. The company expects to produce 35,494 Standard units and 40,198 Deluxe units. It uses activity-based costing and has prepared the following analysis showing budgeted cost and cost driver activity for each of its three activity cost pools. Budgeted Activity of Cost Driver Budgeted Standard Deluxe OH Cost $ 93,000 2,500 Purchases 5,250 Purchases Activity 1: Purchasing Activity 2: Designing $ 92,000 4,500 Designs 5,500 Designs Activity 3:...

  • Write a C++ program that will calculate the total amount of money for book sales at...

    Write a C++ program that will calculate the total amount of money for book sales at an online store. For each sale, your program should ask the number of books sold and then the price for each book and the shipping method (‘S’ for standard shipping and ‘E’ for expedited shipping). The program will produce a bill showing the subtotal, the sales tax, the discount, the shipping charge, and the final total for the sale. The program will continue processing...

  • please help with this. You must create a sales tracking program named SalesTracking.java. This program must...

    please help with this. You must create a sales tracking program named SalesTracking.java. This program must track monthly sales as well as compute average yearly sales, total sales for the year, and which month had the highest sales and which month had the lowest sales. The program should prompt the user for the sales for each month starting with January. After all the monthly sales have been entered, your program should have methods that do the following. getSales(): This method...

  • Java Concurrency! You have been given a simple API to buy and print postage. Write a...

    Java Concurrency! You have been given a simple API to buy and print postage. Write a program that submits each incoming order to the API and then prints the shipping label. Unfortunately each call to the shipping label API is SLOW… To compensate for this, use concurrency so that your program can be making several calls to the API at one time. We also need to keep track of our expenses, so make sure to calculate how much money is...

  • Your program will ask the user to enter the amount of money they want to borrow,...

    Your program will ask the user to enter the amount of money they want to borrow, the interest rate, and the monthly payment amount. Your program will then determine how many months it will take to pay off that loan, what the final payment amount will be, and how much interest was paid over that time. If the monthly payment amount isn't high enough to pay off more than one month's interest, your program should notify the user what the...

  • Analyze a family's spending habits by creating a program that performs arithmetic calculations. The program should...

    Analyze a family's spending habits by creating a program that performs arithmetic calculations. The program should ask the user to enter information for the following questions. How much does the family spend on groceries per month? How much does the family spend on dining out per month? How much does the family spend on entertainment per month? How much does the family spend on rent/mortgage per month? How much does the family spend on utilities per month? How many family...

  • Write a Python program to create userids: You work for a small company that keeps the...

    Write a Python program to create userids: You work for a small company that keeps the following information about its clients: • first name • last name • a user code assigned by your company. The information is stored in a file clients.txt with the information for each client on one line (last name first), with commas between the parts. In the clients.txt file is: Jones, Sally,00345 Lin,Nenya,00548 Fule,A,00000 Your job is to create a program assign usernames for a...

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