The problem consists of two parts, depending on the option entered from the keyboard: • If option a or A; It is requested to calculate the factorials of the 3 integers entered on the keyboard and the sum of the factorials. • If option is c or C; The consecutive sum of 5 integers entered on the keyboard and the sum of the 5 integers entered are required to be calculated. The user can repeat as many programs as they want. After the operations, if the number entered on the keyboard is 0, the program will continue, if the number entered is -1, the program will terminate. As soon as the program ends, "Application Finished!" should be written on the screen. (Consecutive Sum: It is the sum of each number entered on the keyboard with the previous number. For example, if the number entered on the keyboard is 2,5,8,3,4 respectively, the sum of 4 consecutive units should be calculated. 1. consecutive total: 2 + 5 = 7, 2. consecutive sum: 5 + 8 = 13, 3rd consecutive sum: 8 + 3 = 11 and 4th consecutive sum: 3 + 4 = 7.) Basic condition: This question must contain at least one adetswitch-case, for loop, whiled loop, and do-while loop

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

The problem consists of two parts, depending on the option entered from the keyboard: • If option a or A; It is requested to calculate the factorials of the 3 integers entered on the keyboard and the sum of the factorials. • If option is c or C; The consecutive sum of 5 integers entered on the keyboard and the sum of the 5 integers entered are required to be calculated. The user can repeat as many programs as they want. After the operations, if the number entered on the keyboard is 0, the program will continue, if the number entered is -1, the program will terminate. As soon as the program ends, "Application Finished!" should be written on the screen. (Consecutive Sum: It is the sum of each number entered on the keyboard with the previous number. For example, if the number entered on the keyboard is 2,5,8,3,4 respectively, the sum of 4 consecutive units should be calculated. 1. consecutive total: 2 + 5 = 7, 2. consecutive sum: 5 + 8 = 13, 3rd consecutive sum: 8 + 3 = 11 and 4th consecutive sum: 3 + 4 = 7.) Basic condition: This question must contain at least one adetswitch-case, for loop, whiled loop, and do-while loop.

Dev-C++ 5.11
File Edit Search View Project Execute
Tools AStyle Window Help
TDM-GCC 4.9.2 €4-bit Debug
BİL105-0206_2.kısa sınav (2) - Microsoft Word
(globals)
Project Classes Debug
Giriş
Ekle
Sayfa Düzeni
Başvurular
Postalar
Gözden Geçir
Görünüm
Calibri (Gövde)
11
AaBbCcDd AaBbCcDd AaBb C
A
T
A - abe
X,
Aa
Yapıştır
I Normal
1 Aralık Yok
Başlık 1
Stilleri
Düzenleme
ab
A A
Değiştir -
Pano
Yazı Tipi
Paragraf
Stiller
Secenek: A veya a ise Faktoriyel hesaplamasi; c ise Ardisik toplam hesaplamasi yapar:
Secenek giriniz: a,A,c, C: A
Girilen 3 Sayinin fakoriyelleri ve onlarin toplami hesabi:
1. Tam tam sayiyi giriniz: 3E
3!= 6
2. Tam tam sayiyi giriniz: 4 €
4!= 24
3. Tam tam sayiyi giriniz: 5 €
5!= 120
Faktoriyeller toplami: 150
Devam edecekseniz: 0 Etmeyecekseniz: -1 GIRINIZ: 0 E
Secenek: A veya a ise Faktoriyel hesaplamasi; c ise Ardisik toplam hesaplamsi yapar:
Secenek giriniz: a, A, c, C: c E
5 sayinin, Ardisik toplama hesaplamasi:
1. tamsayiyi giriniz: 10 E
2.tam sayiyi giriniz: 5 €
* 1. Ardisik toplam: t=15
3.tam sayiyi giriniz: 12 E
2. Ardisik toplam: t=17
4.tam sayiyi giriniz: 8 E
* 3. Ardisik toplam: t=20
5.tam sayiyi giriniz: 2 €
* 4. Ardisik toplam: t=10
Girilen sayilarin genel toplami= 37
Devam edecekseniz: 0 Etmeyecekseniz: -1 GIRINIZ : -1 E
Uygulama Bitti!
88 Compiler
Resources dh Con Sayfa: 2 /4 Sözcük: 731
目自
%100
17:17
Aramak için buraya yazın
WE
26.04.2021
Transcribed Image Text:Dev-C++ 5.11 File Edit Search View Project Execute Tools AStyle Window Help TDM-GCC 4.9.2 €4-bit Debug BİL105-0206_2.kısa sınav (2) - Microsoft Word (globals) Project Classes Debug Giriş Ekle Sayfa Düzeni Başvurular Postalar Gözden Geçir Görünüm Calibri (Gövde) 11 AaBbCcDd AaBbCcDd AaBb C A T A - abe X, Aa Yapıştır I Normal 1 Aralık Yok Başlık 1 Stilleri Düzenleme ab A A Değiştir - Pano Yazı Tipi Paragraf Stiller Secenek: A veya a ise Faktoriyel hesaplamasi; c ise Ardisik toplam hesaplamasi yapar: Secenek giriniz: a,A,c, C: A Girilen 3 Sayinin fakoriyelleri ve onlarin toplami hesabi: 1. Tam tam sayiyi giriniz: 3E 3!= 6 2. Tam tam sayiyi giriniz: 4 € 4!= 24 3. Tam tam sayiyi giriniz: 5 € 5!= 120 Faktoriyeller toplami: 150 Devam edecekseniz: 0 Etmeyecekseniz: -1 GIRINIZ: 0 E Secenek: A veya a ise Faktoriyel hesaplamasi; c ise Ardisik toplam hesaplamsi yapar: Secenek giriniz: a, A, c, C: c E 5 sayinin, Ardisik toplama hesaplamasi: 1. tamsayiyi giriniz: 10 E 2.tam sayiyi giriniz: 5 € * 1. Ardisik toplam: t=15 3.tam sayiyi giriniz: 12 E 2. Ardisik toplam: t=17 4.tam sayiyi giriniz: 8 E * 3. Ardisik toplam: t=20 5.tam sayiyi giriniz: 2 € * 4. Ardisik toplam: t=10 Girilen sayilarin genel toplami= 37 Devam edecekseniz: 0 Etmeyecekseniz: -1 GIRINIZ : -1 E Uygulama Bitti! 88 Compiler Resources dh Con Sayfa: 2 /4 Sözcük: 731 目自 %100 17:17 Aramak için buraya yazın WE 26.04.2021
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY