Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > alt.php > #3294

Re: Simple Programming Problem but How Many Ways to Do It?

From "J.O. Aho" <user@example.net>
Newsgroups alt.php
Subject Re: Simple Programming Problem but How Many Ways to Do It?
Date 2023-08-27 16:59 +0200
Message-ID <kl16nbF8hv4U1@mid.individual.net> (permalink)
References <69e1cbdd-ea4f-4e22-bdc1-1b743e2662d5n@googlegroups.com> <slrnuemjcc.siv.trepidation@vps.jonz.net>

Show all headers | View raw


On 8/27/23 15:20, Allodoxaphobia wrote:
> On Sat, 26 Aug 2023 10:09:33 -0700 (PDT), PHPBABY3 wrote:
>> Program 1 returns a Boolean value call it A.
>> Program 2 returns a Boolean value call it B.
>> We want one program that returns A ^ B (the value of A and B).
>> We don’t want to call 1 and 2.
>> We want to take the code in these two programs and create a new program.
>>
>> Assume we have the common commands and expression elements e.g. those of PHP.
>> How many different programs can we create?
> 
> It's actually been a long time since I've seen a homework question on USENET.

Maybe one of those that promised to not use ChatGPT ;)

-- 
  //Aho

Back to alt.php | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Simple Programming Problem but How Many Ways to Do It? PHPBABY3 <shymathguy@gmail.com> - 2023-08-26 10:09 -0700
  Re: Simple Programming Problem but How Many Ways to Do It? Allodoxaphobia <trepidation@example.net> - 2023-08-27 13:20 +0000
    Re: Simple Programming Problem but How Many Ways to Do It? "J.O. Aho" <user@example.net> - 2023-08-27 16:59 +0200
    Re: Simple Programming Problem but How Many Ways to Do It? PHPBABY3 <shymathguy@gmail.com> - 2023-09-02 11:36 -0700

csiph-web