0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ほぼ未経験でもChatGPTを使えばプログラムを作れるのか⑩プログラミングほぼ未経験者の挑戦~:アルゴリズム⑨

0
Posted at

図①.png
図1:アルゴリズムの設計①図5再掲

今回は4.のアルゴリズムの設計から。

図②.png
図②-2.png
図2

エラー処理・・・?

図③.png
図③-2.png
図3

エラーが起こった時にどんなふうに表示させるか?ってことなのかな。

そしてエラー処理とは全然関係ないんだけど。

今ひらめいたというか、気が付いたんだけど・・・

このプログラム、全部の媒体を全期間で表示させるプログラムになっちゃってるような・・・

それは使いにくすぎるわ。

図④.png
図④-2.png
図④-3.png
図4

期間はこれでいいっぽいな。

でも媒体は、いちいち媒体名を入力するのすごく手間じゃない?

どうにかできるのかな?

図⑤.png
図⑤-2.png
図⑤-3.png
図5

出来そうな感じ。たぶんたぶん。

図⑥.png
図6

あ、やっぱりアルゴリズムの設計に入れないといけないよね。

図⑦.png
図⑦-2.png
図⑦-3.png
図7

これで出来たっぽいかな?

あ、エラー処理がされてない?

図⑧.png
図⑧-2.png
図8

これで今度こそ完了かな?

図⑨.png
図9

ChatGPTも大丈夫って言っているし、完了ってことで。

4.アルゴリズムの設計:完了!

所用時間:1.5時間

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?