Given-kun Posted June 14, 2021 Share Posted June 14, 2021 (edited) 1. Create a denomination program. See the example below. Input amount: 3897 1000: 3 500: 1 200: 1 100: 1 50: 1 20: 2 10:0 5:1 1: 2 2. Create a program that will compute the ideal age of a man's wife. See the example below. Input Man's Age: 27 Formula: Man'sAge/2 + 7 Your ideal Wife's age is: 20 Please send the Output as reply and please include the codes Edited June 14, 2021 by Given-kun Edit Quote Link to comment https://forums.phpfreaks.com/topic/312901-create-a-php-program-that-will-perform-the-following/ Share on other sites More sharing options...
Barand Posted June 14, 2021 Share Posted June 14, 2021 Ok, I've done those. What's next? Quote Link to comment https://forums.phpfreaks.com/topic/312901-create-a-php-program-that-will-perform-the-following/#findComment-1587202 Share on other sites More sharing options...
Barand Posted June 14, 2021 Share Posted June 14, 2021 30 minutes ago, Given-kun said: Please send the Output as reply and please include the codes From the Forum Guidelines... Quote Users will not post their homework questions expecting to get their homework coded for them. If you have a question about part of the assignment that you do not understand, please post asking for an explanation rather than the code. If you are having a problem, show us what you have tried already and tell us which bit is giving you the problem. Quote Link to comment https://forums.phpfreaks.com/topic/312901-create-a-php-program-that-will-perform-the-following/#findComment-1587203 Share on other sites More sharing options...
Barand Posted June 14, 2021 Share Posted June 14, 2021 As requested, here's the output Quote Link to comment https://forums.phpfreaks.com/topic/312901-create-a-php-program-that-will-perform-the-following/#findComment-1587205 Share on other sites More sharing options...
ChenXiu Posted June 15, 2021 Share Posted June 15, 2021 To this question, I have more questions than answers. 1.) Will the PHP program actually bring such a wife? 2.) If so, how much will this program cost? -and- 3.) What is the purpose of the money denominations? Is that how much money you need to keep the wife from running off with a younger man? Quote Link to comment https://forums.phpfreaks.com/topic/312901-create-a-php-program-that-will-perform-the-following/#findComment-1587227 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.