Program Activity For Group Demo
Program Activity For Group Demo
1. A box of tableya can hold 24 tableyas and a container can hold 50 boxes of tableyas.
Write a program that prompts the user to enter the total number of tableyas. The
program then outputs the number of boxes and the number of containers to ship the
tableyas. Note that each box must contain the specified number of tableyas and each
container must contain the specified number of tableyas. If the last box of tableya
contains less than the number of specified tableyas, discard it, and output the number of
leftover tableyas. Similarly, if the last container contains less than the number of
specified boxes, discard it and output the number of leftover boxes.
2. A rural bank in Lemery, Batangas updates its customers’ accounts at the end of each
month. The bank offers two types of accounts: savings and checking and every
customer must have a minimum maintaining balance. If the customer’s balance falls
below the minimum balance, there will be a service charge of Php100 for savings
accounts and Php200 for checking accounts. If the balance at the end of the month is at
least at the minimum balance, the customer’s account will receive an interest of 3% for
savings account and 4% for checking account. Write a program that accepts a
customer’s account number, account type (s/S for savings, c/C for checking), minimum
maintaining balance and current balance. Then print/display the updated customer’s
account details: account number, account type and current balance.
3. Write a program that calculates and prints the bill for a telecommunication company. The
company offers two types of call service: regular and premium. Given below are the
computation of rates per service.
a. Regular: Php10 + first 45 minutes are free. Customer will be charged 0.15 per
minute for over 45 minutes.
b. Premium: Php20 +
- For daytime calls– the first 60 minutes are free and a charge of 0.10 per
minute for over 60 minutes.
- For nighttime calls– the first 100 minutes are free and a charge of 0.05
per minute for over 100 minutes.
Write a program that will prompt the user to enter the account number, type of service
(r/R for regular, p/P for premium), and the number of minutes the call service was used.
For the premium service, ask the user to input the number of minutesthe service was
used during the day and the number of minutes the service was used during the night.
4. A local cable company provides two types of customers: residential and business. Given
below are the rates for calculating a cable bill per customer type.
Write a program that will ask the user to enter the customer’s account number, customer
code (r/R for Residential, b/B for Business), number of premium channels and in case of
business customers, the number of service connections. Calculate and print the billing
statement.
5. Ms. Lily Bermudez, a well-known author, is in the process of negotiating a contract for a
new romance novel. XYZ publishing is offering her the following options:
a. Option 1 – She will be paid 100,000 upon delivery of the final manuscript and
200,000 when the novel is published.
b. Option 2 – She will be paid 12.5% of the net price of the novel for each copy of
the novel sold.
c. Option 3 – She will be paid 10% of the net price for the first 4,000 copies sold,
and 14% of the net price for the copies sold over 4,000.
Write a program that will ask the author to enter the net price of each copy of the novel
and the estimated number of copies that will be sold. The program will then display the
royalties the author can get under each option and the best option the author could
choose.
Review of Programming 1
1. Pseudocode
2. Flowchart
3. Test Data-5 (in excel)
4. Source Codes
5. Program Demonstration (using 5 test data in number 4)
Rubric