Question: Im confused about the input specifications and what i'm missing from my code, can some please help me? Introduction to C - Programming Assignment #2


Im confused about the input specifications and what i'm missing from my code, can some please help me?
Introduction to C - Programming Assignment #2 Notes 1. Please read the notes the math library, if statements and while loops. (Lectures #5, #6, #7) Objectives 1. To learn how to use an if statement for conditional execution. 2. To learn how to call math library functions to aid in calculations. 3. To learn how to use basic repetition to simplify calculations and allow for statements to repeat certain sets of statements multiple times. Problem A: Wedding Invitations (invite.c) Though Arup wants to just send a free E-vitation to all of his guests for his wedding, his fiancee will have none of it. She has put her foot down and has insisted that they mail out regular invitations. After doing some research, Arup found out that depending on the size of the packages of invitations ordered, there are different prices. He wants you to figure out how many of each package to order, in order to get enough invitations to mail out at the cheapest price. For the purposes of this problem, there are only two packages: 1) One with 50 invitations 2) One with 200 invitations Each vendor has a different price for the two packages. You'll ask the user to input these two prices, as well as the total number of invitations that need to be sent out. Your job will be to calculate how many of each package to buy for the best deal, and how much will be spent on invitations. Input Specification 1. The cost of both packages (in dollars) will be positive real numbers less than 500. 2. The number of invitations needed will be a positive integer less than 10000. Output Specification The first line of output will specify the number of small packages to buy to minimize the cost of the order of invitations using the following format: You should order X small package(s). where X is the number of small packages to order. The second line of output will specify the number of large packages to buy to minimize the cost of the order of invitations using the following format: You should order Y large package(s). where Y is the number of small packages to order. eclipse-workspace - HW 2/invites - 1.c - Eclipse IDE HW 1 on: 0 Run Local c taxes. c c tictactoe. c c *invites-1.cx *invites-1.c CifPractice. c 8 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
