Create a program that will ask a user to enter a number of tokens he/she want's to buy and displays
*the amount to pay
*total tokens acquired
*how many paid tokens
*and number of free tokens
use method to create a program that will display the area of circle based on the radius inputted by the user.It should contain the following method:input_radius,comp_area and display_result.You may use the formula: A=r², where r=3.1416
Create a program that accept six (6) numbers and check whether each number is either odd or even number. Hence, if the sum of odd numbers is greater than the sum of
even numbers, calculate the sum (all odd numbers), otherwise, calculate the sum (all even numbers).
Thanks for answering this I really appreciate it!
Enter the input reference number for the processing of output: 10
Enter number of row/s: 6
Generated screen output:
1 10 2 9 3 8 4 7 5 6
1 10 2 9 3 8 4 7 5 6
1 10 2 9 3 8 4 7 5 6
1 10 2 9 3 8 4 7 5 6
1 10 2 9 3 8 4 7 5 6
1 10 2 9 3 8 4 7 5 6
Using the while ( ), do - while (), and for ( ) loops, generate the following screen
output:
Sample output
Series generated using while ( )
1 1 1 2 4 8 3 9 27
Series generated using do-while ( )
1 2 3 1 4 9 1 8 27
Series generated using for ( )
3 9 27 8 4 2 1 1 1
Create a program that will ask the user to enter five (5) years (in no particular order)
and check whether each year is a leap year or not. Moreover, your program should display:
"More leap years," if there is a greater number of leap years, otherwise display "Fewer leap years."
Thanks for answering this!
Create a program that will compute and display the number of days based on the
input starting and ending year.
Sample output:
Enter the starting year: 1999
Enter the ending year: 2001
No. of year/s: 3
No. of days: 1096
Thanks for answering this!
Create a program that will generate a month calendar for the year 2022.
Sample output:
Enter month in number (e.g., 3 for March): 4
Module 03 | Performance Tasks
Calendar
April 2022
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Create a program that generates a Frequency Distribution
Table, compute, and display the descriptive statistics of any given line of text. The
program should follow the sample output below:
Table 1. Frequencies of Characters
---------------------------------------------------------------------------------------------
Characters Frequency Percentage
---------------------------------------------------------------------------------------------
Vowel 20 23.53
Consonant 34 40.00
Digit 10 11.76
Space 15 17.65
Punctuation 3 3.53
Special 3 3.53
---------------------------------------------------------------------------------------------
Total 85 100
---------------------------------------------------------------------------------------------
Module 03 | Understanding Directed Assessments
Table 2. Descriptive Statistics
---------------------------------------------------------------------------------------------
Mean 14.17
Variance 115.81
Standard Deviation 10.76
Create a program that will compute for the weekly Net pay of an employee based
on any input Hours and Rate. Any hour/s exceeds the regular 40 hours is entitled to an
Overtime pay, wherein Overtime pay = Hours - 40 x Rate x 1.5.
Deductions are as follows:
Tax = 5% of Gross Pay
Union = 2% of Gross Pay
SaLoan = 590.32 (Fixed Amount)
Gross Pay = (Hours > 40? 40 X Rate + Overtime pay: Hours x Rate)
Deductions = Tax + Union + SaLoan
Net Pay = Gross Pay - Deductions