+ 3
Can any body help in solving out this type of programs
OK, now using loops in java modify the same program to seek input dynamically on customer name, which model shoe they want and a decision to check if the customer is last and if the answer is yes exit the loop and display total sale value and number of customers visited the shop for the day
19 Respuestas
+ 6
What have you figured out so far?
What language does this need to be in?
Is this using a database or hardcoded data structures?
Where exactly are you stuck?
We aren't going to do your homework for you. But we can give you guidance based on where you are stuck.
You will need to improve on the details provided. Otherwise, it leaves too much to the imagination.
+ 6
Post your Java code into Code Playground so we can see what you have so far.
I'm going to sleep though. So... others may be able to help. It's 2:50am here where I am.
Best of luck. I'll check your stuff when I have a moment tomorrow.
+ 5
Martin Taylor I agree... This reads like a simple homework assignment.
I wonder what language this is for.
I also wonder if the assignment involves a data structure with hardcoded values (like JSON or array of objects) instead of a database. I wouldn't be surprised as this seems to be common in academia. 🤷♂️
+ 3
sujay kamal I would have been happy to help give guidance once I could have seen where in the code you are stuck. Since it doesn't seem likely that you will be sharing your attempt up to this point and you haven't responded to any of my specific questions or other comments about the problem, I don't think I'm going to be the right person to help you.
I wish you the best of luck. Hopefully someone else will have the time and patience to help walk you through this further.
+ 3
Your question is not clear , but here are my suggestions
You can use while loop and followed by if condition . If your data become true , you can break the loop .
if you share your source code , that would be easier to get a solution .
+ 1
1.There are 10 different model shoes in a shop
2.Each model shoe has different price e.g,, model1 is of 200, model2 is of 300, model3 is of 400 .... model10 is 1000
3.There are 5 people who came to shop today and purchased as following person1 purchase 2 sets of model1, person2 purchased 1 set of model3, person3 purchased 4 sets of model5, person5 purchased 1 set of all 10 models (i.e., model1 - 1 set, model2 - 1 set .... model10 - 1 set)
you need to show me the result on following
a.How many sets were sold
b.How much total cash received
+ 1
Actually I have written it on paper
+ 1
I can try solving the sets sold and cash received. But I need this solving through loops. Can you help me
+ 1
Will you please solve this so that I can learn. And I'm beginner
+ 1
Ok,. Actually I have completed writing program for how many sets sold and cash received. For the same program I need to write with using loops. In the java
+ 1
Okae..
+ 1
sujay kamal Did you change your mind about sharing your code or needing help? 🤷♂️
+ 1
Need help
+ 1
sujay kamal Okay... just post a link to your Java code using a link similar to this one.
https://code.sololearn.com/c2N8EqX5aPOQ/?ref=app
+ 1
David Carroll 1.There are 10 different model shoes in a shop
2.Each model shoe has different price e.g,, model1 is of 200, model2 is of 300, model3 is of 400 .... model10 is 1000
3.There are 5 people who came to shop today and purchased as following person1 purchase 2 sets of model1, person2 purchased 1 set of model3, person3 purchased 4 sets of model5, person5 purchased 1 set of all 10 models (i.e., model1 - 1 set, model2 - 1 set .... model10 - 1 set). Can any body help in solving out this type of programs
now using loops in java modify the same program to seek input dynamically on customer name, which model shoe they want and a decision to check if the customer is last and if the answer is yes exit the loop and display total sale value and number of customers visited the shop for the day
+ 1
David Carroll 1.There are 10 different model shoes in a shop
2.Each model shoe has different price e.g,, model1 is of 200, model2 is of 300, model3 is of 400 .... model10 is 1000
3.There are 5 people who came to shop today and purchased as following person1 purchase 2 sets of model1, person2 purchased 1 set of model3, person3 purchased 4 sets of model5, person5 purchased 1 set of all 10 models (i.e., model1 - 1 set, model2 - 1 set .... model10 - 1 set). Can any body help in solving out this type of programs
now using loops in java modify the same program to seek input dynamically on customer name, which model shoe they want and a decision to check if the customer is last and if the answer is yes exit the loop and display total sale value and number of customers visited the shop for the day
+ 1
Can you help me by send this program executed by you. As IAM unable to execute
- 1
wywyuwbwo