Compute the tuition fee for another student

Assignment Help Basic Computer Science
Reference no: EM131068481

Dr Ho Coaching Centre gives lessons on three programming languages: Python, Java and C++. They have divided each programming language into a number of topics such as if-statement, while-loop, and for-loop. They teach each topic through a standard one-hour long lesson.

Students can request any number of additional hours on the topics that they have already studied. They can also request for any number of practice tests at the centre.

The centre charges for each standard lesson, additional hour and test according to the table below.

LanguageFee for each LessonFee for an additional hourFee for each test
Python $300 $200 $250
Java $200 $150 $150
C++ $175 $175 $170

For example, if a student studying Python requests 20 topics, 10 additional hours and 5 tests the total tuition fee for him/her will be ($6,000 + $2,000 + $1,250) = $9,250.

The Principal of Dr Ho Coaching Centre (Dr Wise Ho) contracts you to build a computer system, Power of Knowledge (PK), for them in Python.

PK will ask them to input, for a student, the name of the programming language that the student wants to study, the number of topics/lessons that he/she wants to study, the number of additional hours that he/she wants to study, and the number of tests that he/she wants to sit for. Based on the inputs the program will compute and display the tuition fee for the lessons, additional hours and tests. It will also display the total tuition fee.
PK will then ask Dr Ho "Do you want to compute the tuition fee for another student?"

If Dr Ho wants to compute the tuition fee for another student (i.e. enters "Y" or "y" to the question above), PK will ask for all these inputs again for the new student, and compute and display the total tuition fee for the new student. The program will then again ask Dr Ho "Do you want to compute the tuition fee for another student?"

The above process will continue as long as they want to compute the tuition fee for another student. However, if Dr Ho does not want to compute the tuition fee for another student (i.e. he enters anything other than "Y" or "y") then the program will exit.

A typical example of the display of your program can be as follows. Your program MUST follow the same display style.
---------------------------------------------------------------------------------------------- 
Welcome to Dr Ho Coaching Centre
-----------------------------------------------------------------------------------------------
Enter the name of the programming language: Python
Enter the number of lessons: 20
Enter the additional hours: 10
Enter the number of tests: 5
Tuition fee for the lessons (in dollars): 6000
Tuition fee for additional hours (in dollars): 2000
Tuition fee for the tests (in dollars): 1250

Total tuition fee (in dollars): 9250
Do you want to compute the tuition fee for another student? Y
Enter the name of the programming language: Java
Enter the number of lessons: 25
Enter the additional hours: 10
Enter the number of tests: 10
Tuition fee for the lessons (in dollars): 5000
Tuition fee for additional hours (in dollars): 1500
Tuition fee for the tests (in dollars): 1500

Total tuition fee (in dollars): 8000
Do you want to compute the tuition fee for another student? N
Good Bye.

Reference no: EM131068481

Questions Cloud

Prepare memo to mr jones that discusses legal implications : Prepare a memo to Mr. Jones that discusses the legal and tax implications of making the change. Be sure to cite your findings with appropriate laws and tax code.
Generic strategies of porters : Companys competitive advantage over its rivals - is company following any Generic Strategies of Porters.
Problem regarding the availability of technology : Over the years, technology has not only changed the way individuals utilize it but also how organizations utilize it. As each generation of technology improves and changes, the availability of technology in the field of business analytics also cha..
Discuss the emerging role of health information managers : Describe five (5) characteristics of the traditional model and five (5) characteristics of the professional model. Identify five (5) critical factors and skills required to perform the health information managers' current roles successfully.
Compute the tuition fee for another student : The above process will continue as long as they want to compute the tuition fee for another student. However, if Dr Ho does not want to compute the tuition fee for another student (i.e. he enters anything other than "Y" or "y") then the program wi..
Job as the controller of a start-up company : You have accepted a job as the Controller of a start-up company - a consulting firm, called Sheila Shaw Consulting. Sheila is an excellent consultant, but not a good accountant. She has attempted to prepare the first month's financial statements; ..
Consider accepting stock of a new corporation : Why would a law firm ever consider accepting stock of a new corporation having a total par value of USD 320,000 as payment in full of a USD 480,000 bill for legal services rendered? If such a transaction occurred, give the journal entry the issui..
Discuss issue related to implementation of electronic system : Discuss issues related to the implementation of electronic systems, specifically the computerized patient record. Include in your response two (2) advantages, two (2) disadvantages, one (1) issue related to lack of resources/leadership, and one (1..
Complete the course project use target corp : In your course project, you are asked to recommend an appropriate brand architecture for a company. This project will combine the skills you have learned within this course. Prior to starting, read the Brand Architecture course project description..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Prompt the user for the number of sides

1.Prompt the user for the number of sides on the die.2."Roll" the die three times by generating a random number between 1 (inclusive) and the number of sides (inclusive).3.Keep track of the running sum of the rolls for the die and output the sum and ..

  How popular is each network today

How popular is each network today? How do they compare to proprietary commercial networks such as Myrinet and Quadrics?

  How many rows will a truth table require

How many rows will a Truth Table require if there are six variables and three conditions of each variable? Defend your answer.

  Executive summary written to executive management

1. Lab #5 - A four-paragraph executive summary written to executive management providing a summary of findings, risk impact to the IT asset and organization, and recommendations for next steps.

  What software developers and programmers use

Software developers and programmers use _____ to develop the logic of a solution prior to coding the solution.

  Maker of a leading brand of low-calorie microwavable

Questions 1 through 5 are based on the following scenario (adapted from Chapter 5 demand estimation question number 3, p.163)The maker of a leading brand of low-calorie microwavable food estimated the following demand equation for its product using..

  Find out the running time of program

What is the running time of your program? If M = 1, what is the running time of your program? How is the actual speed affected by the delete routine for large values  of N (N > 100,000)?

  Differentiating conventional decision support system and es

A major difference between a conventional decision support system and an ES is that the former can explain a "how" question whereas the latter can also explain a "why" question.

  Determine the expected net operating income (noi) from sales

The probabilities are 20%, 50%, and 30% for revenues of $800,000, $1,000,000, and $1,100,000 per year, respectively, and operating expenses are constant at $200,000 per year

  Are robots remotely controlled by humans really robots

Are robots remotely controlled by humans really robots?

  Create a professional document that promotes development

Search the Internet for information on a topic that interests you and that offers information on money management, personal health and safety, or parenting. Note the URL's where you find your material, as you will need to reference the information..

  Generate the same hash value

1. A 2,000-bit message is used to generate a 256-bit hash. One the average, how many other messages could be expected to generate the same hash value? What does this tell us about the length of a hash as compared to the length of the message?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd