Create the program in c++ to compute your final grade in quiz, online laboratory, exam 1, exam 2, and exam 3 with your name and section
Write a program that will automate the actual process of classroom. The user must input the section name, student names, and the number of chairs. Each chair must be divided into 5 columns only (per example below). Each student names to be entered must be a randomly assigned particularly chair number.
Write a java program that will automate the actual process of passenger reservation in an actual public terminal. Each vehicle is assigned its predefined number of seats. Each passenger must be reserved to its desired seat number and must be processed.
1. Demonstrate use of Object Oriented Programming (OOP) principles, data structures and file
handling operations to carry out the following tasks:
a) Define a class named Person, with child classes named Daughter and Son who also have
have derived classes named GrandSon and GrandDaughter respectively. All child
classes have derived genetic features and skills from Person. Create 5 methods for
getting and setting genetic features, setting and getting skills and demonstrate the concept
of polymorphism.
b) Modify the answer in a) and show how the person features are captured in a file called
person.txt. Also create another method to read from the file person.csv and store the data
in a list called persondata. Clearly show how exceptions are handled in your program.
D.
If
they
rolled
a
1,
set
their
score
for
the
round
to
zero
and
don’t
let
them
roll
again.
E.
If they rolled anything other than a 1, add that number to their round score and
ask if they want to roll again. If so, repeate the last two steps.
Create a constructor. It should take in three arguments (in this order): an array of
Player
s, a
Die
, and an
int
representing the victory score.
The constructor should store all of these in
private fields.
4.
Create a method called
play()
. It takes no arguments.
(a)
Do the following
forever
(yes, really.
We’ll use a
return
statement to end the method
when the game is over).
i.
Loop
over
the
array
of
players.
For
each
player,
do
the
following:
(you
probably
want to do a
for
loop over the array of players)
In this assignment, you will again modify your Quiz program from the previous assignment. You will create an abstract class called "Question", modify "MultipleChoiceQuestion" to inherit from it, and add a new subclass of "Question" called "TrueFalseQuestion". This assignment will again involve cutting and pasting from existing classes. Because you are learning new features each week, you are retroactively applying those new features. In a typical programming project, you would start with the full suite of features, enabling you to re-use code in ways natural to Java and avoid cutting and pasting. First create the new "Question" abstract class. • Open your "CS1102" project in Eclipse. • Select "New" -> "Class" from the File menu. •
Write a python program using conditional statements design a login where a user will enter a username and password
A) on successful login a welcome message is displayed
B) on 3 attempts an invalid message is displayed informing the user of the attempts remaining
C)on the fourth unsuccessful attempt the program will exit and inform the user of failed attempts
You are required to write builds a record book for Projects being conducted at a department. A Project has an id, description, a list of members and start and end dates. 1. Provide following in the Project class
a. toString: to match the output that will be given till Saturday
b. getTeamSize(): that finds and returns the size of the team working on this project c.
Build a class Member that has id, name and payment rate. Write a class ContractMember that extends Member
a. Provide a data member contractStart and contractEnd (LocalDateTime)
b. Provide a static constant TAXRATE and initialize it to 0.07
c. Provide getters, setters and appropriate constructors
d. Override the method calculateSalary which calculates the salary by finding the number of days between the start and end of the contract and callculating the salary for these days @ of the rate defined earlier. The method then deducts tax from this amount @ the TAXRATE and returns the net payable amount as salary
e. Override the toString to match the output