output format display:
student Name: Florence Cheng
Student id:10010005
Study mode: Part time
programme:
higher diploma in Computer Technology
Cerrent Level: Year 1
Number of modules take by the term : 4
Code Attendance Exam Mark Grade
cs101 100% 80 HD
cs102 69% 71 D
Average Mark:
Average attendance:
Final Grage:
Remark: you need to retake some modules.
1.Create a Student Class to store the profile data including: student ID, student name, password, study mode.......
Create a Student class
Variables to store in profile data
Use array list to record the module details (module code, module name, mark, and attendance)
setter for each variable in the Student class with data validation
getter for each variable in the Student class
constructor for the Student class
Q.1.1 Create a two-dimensional array to contain the three sale items for five different artists. A single array must be used to store the artist names.
ARTIST NAME CD SALES DVD SALES BLU RAY SALES
Ed Sheeran 900 000 800 000 500 000
Pink 700 000 500 000 500 000
Bruno Mars 800 000 100 000 50 000
Foo Fighters 100 000 200 000 200 000
Taylor Swift 300 000 100 000 50 000
Q.1.2 Allow a user to enter in a number, ranging from 1 to 5, which will represent the artist position with regards to the album sales.
Q.1.3 Printout the artist name including the CD, DVD, BLU RAY sales amounts and total sales.
program that computes the area of either a rectangle, a circle or a right-angled triangle. The program should display a menu that enables the user to select the type of figure whose area he/she wants to compute. Depending on the user’s choice, the program should prompt for the dimensions and perform the computations. The output should be: - The type of figure, the dimensions and the area. Define three functions: - one to compute the area of a rectangle, one the area of a circle and one the area of a triangle. NB: 1. The calculation should be for only one figure at any one time.
2. Computations should be done in the user-defined functions.
Survival of the Biggest
by CodeChum Admin
Looping a number and taking away each digit of it is so much fun, but I wanted to try out a much more complex task: getting the largest digit among them all.
Think you can handle the job?
Instructions:
Input a non-zero positive integer.
Using the same concept as the previous problem, figure out how to separate the digits of a number and determine which of the digits is the largest one, using a while. Afterwards, print the largest digit.
Tip #1: Create another variable that will hold the largest digit. Initial its value to a negative integer, like -1, outside the loop.
Tip #2: Everytime you get the rightmost digit, check if it is greater than the current largest digit. If it is, set it as the new largest digit.
Input
A line containing an integer.
214
Output
A line containing an integer.
4
In or Out
by CodeChum Admin
I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out". Simple, right?
Now let's get this game started.
Input
A line containing an integer.
35
Output
A line containing a string.
Out
In or Out
by CodeChum Admin
I'm quite into games now, so how about we play In or Out! When a given number is even, the team scores so we shall print "In", but if it's not an even number, then we print "Out". Simple, right?
Now let's get this game started.
Input
A line containing an integer.
35
Output
A line containing a string.
According to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches):
BMI = 703 x (weight/(height2))
Note: For this problem, you need to format the output to print the appropriate number of decimal places. You need to use System.out.format (Read: https://docs.oracle.com/javase/tutorial/java/data/numberformat.html)
We Filipinos are quite known for the habit of leaving at least one of the many pieces of food on the plate as it can't be equally divided among all at most times. Just like when 3 people decide to eat a pizza of 10 slices, there will often be at least one slice left on the box. To accurately show just how many pieces of things are left when divided by a certain number, we code it using modulo.
Care to do it for me
Q.2.1 On the form create two combo boxes, one for the country selection and another to select a town. Also, add two radio buttons for the user to select to display either a phone or postal code.
Q.2.2 You are also required to create a “submit” and “exit” button. The layout of the form is left to your discretion. Marks will be allocated to the presentation and effectiveness of the layout, but the following layout is displayed for your convenience. 16; 17; 18 2018 ©
Q.2.3 The application must allow a user to select between two countries, namely South Africa and the United Kingdom. When a particular country is selected, present the available towns in the town combo box.
SOUTH AFRICA UNITED KINGDOM Cape Town Phone Code: 021 Postal Code: 8000 London Phone Code: 020 Postal Code: WC2N5DU Johannesburg Phone Code: 011 Postal Code: 2000 Oxford Phone Code: 01865 Postal Code: OX13PN Durban Phone Code: 031 Postal Code: 4000 Southampton Phone Code: 023 Postal Code: SO147DW
Write a Java application and use a two-dimensional array that will store the three ratings of five TV shows.
SERIES NAME RATING 1 RATING 2 RATING 3 Big Bang Theory 9 8 5 Scandal 7 5 5 Modern Family 8 8 8 Dexter 10 7 8 Grand Designs 3 1 5 (6)
Q.2.2 Calculate and print the average of the TV rating for each TV show.
Q.2.3 Determine if the series will be continued for another season. If the average rating of the series is greater than or equal to seven then the TV network will continue with a new season.
Q.2.4 Print out each series name with the average rating and if there will be a series continuation.