pps Paraphasing Tool L Documen Disctidemy Free U C A your designs - C Instagant Buy Pugins & Code Website Usability T. Sepaate vocals an Logo Maker Creat e Challenge task There are N students, each of them agistered in a programming course for M months, the cost of this course is calculated as follows: The cost per month is 50 JD. If any student registered for 4 months or more, he will get an X% discount. • The programming center may give additional personal lessons for any student in this course, where the cost per lesson is 13 JD, whic added to the course's cost. Adam is the accountant in this programming center, and asked you to write a C++ program that calculates the total cost for each stuc registered in this course. Can you help him? Constraints 1SNS 20 1SMS 12 1sXs 20 P = 0 or 1 1SLS 10

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
x > Course Cost Path2C
George is screen sharing
f 2 fiends |facebook
O Messenger Room
* path2code.com p2c/suser/question/rea hestidyotow9n u2GCUnQK96He9heB sO0tBOlw8-Bgid=sceYfPsimTPSiloOXG75g-
Apps Paraphrasing Tool .
L. Documen Discidemy - Free U.
TInstagantt
C All your designs - C.>
ACX Buy Plugins & Code.
Website Usability T.
Separate Vocals an
wLogo Maker |Ceat
O Readi
e Challenge task
There are N students, each of them egistered in a programming course for M months, the cost of this course is calculated as follows:
• The cost per month is 50 JD.
• If any student registered for 4 months or more, he will get an X% discount.
• The programming center may give additional personal lessons for any student in this course, where the cost per lesson is 13 JD, which
added to the course's cost.
Adam is the accountant in this programming center, and asked you to write a C++ program that calculates the total cost for each studer
registered in this course. Can you help him?
Constraints
1<Ns 20
1SMS 12
1sXs 20
P = 0 or 1
1<LS 10
SInput Format
The first line contains an integer N: the number of students, then for each student two lines as follows:
Transcribed Image Text:x > Course Cost Path2C George is screen sharing f 2 fiends |facebook O Messenger Room * path2code.com p2c/suser/question/rea hestidyotow9n u2GCUnQK96He9heB sO0tBOlw8-Bgid=sceYfPsimTPSiloOXG75g- Apps Paraphrasing Tool . L. Documen Discidemy - Free U. TInstagantt C All your designs - C.> ACX Buy Plugins & Code. Website Usability T. Separate Vocals an wLogo Maker |Ceat O Readi e Challenge task There are N students, each of them egistered in a programming course for M months, the cost of this course is calculated as follows: • The cost per month is 50 JD. • If any student registered for 4 months or more, he will get an X% discount. • The programming center may give additional personal lessons for any student in this course, where the cost per lesson is 13 JD, which added to the course's cost. Adam is the accountant in this programming center, and asked you to write a C++ program that calculates the total cost for each studer registered in this course. Can you help him? Constraints 1<Ns 20 1SMS 12 1sXs 20 P = 0 or 1 1<LS 10 SInput Format The first line contains an integer N: the number of students, then for each student two lines as follows:
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 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