Code in python:
Write a class that implements a struct. In your struct store
Student information such as name, netid, and gpa. Write a function
that can access a student in a list of 5 structs by netid and print
their name and gpa. Show that your function works by calling
it.
In this create a code that will drop a student
by ID
number
////////////////////////////////////////////////////////////////////////
import java.util.Scanner;
public class COurseCom666 {
private String courseName;
private String [] students = new
String[1];
private int numberOfStudents;
public COurseCom666(String courseName) {
this.courseName =
courseName;
}
public String[] getStudents() {
return students;
}
public int getNumberOfStudents() {
return
numberOfStudents;
}
public String getCourseName() {
return courseName;
}
public void...
Write in C++:
create a Doubly Linked List class that holds a struct with an
integer and a string. It must have append, insert, remove, find,
and clear.
---In the code, create add and delete a student by ID
number when prompted
///////////////////////////////////////////////////////////////
import java.util.Scanner;
public class COurseCom666 {
private String courseName;
private String [] students = new
String[1];
private int numberOfStudents;
public COurseCom66(String courseName) {
this.courseName =
courseName;
}
public String[] getStudents() {
return students;
}
public int getNumberOfStudents() {
return
numberOfStudents;
}
public String getCourseName() {
return courseName;
}
public...
Write a C code program to implement the comparisons of three
integer numbers, using only conditional operators (no if
statements). Please ask the user to input random three integers.
Then display the minimum, middle, and maximum number in one line.
Also, please calculate and display the sum and the average value
(save two digits after decimal point) of these three integers.
Please write the comments line by line.
write a Program in C++
Using a structure (struct) for a timeType, create a program to
read in 2 times into structures, and call the method addTime, in
the format:
t3 = addTime(t1, t2);
Make sure to use add the code to reset and carry, when adding 2
times. Also, display the resultant time using a function:
display(t3);
Code in Java
Write a Student class which has two instance variables, ID and
name. This class should have a two-parameter constructor that will
set the value of ID and name variables. Write setters and getters
for both instance variables. The setter for ID should check if the
length of ID lies between 6 to 8 and setter for name should check
that the length of name should lie between 0 to 20. If the value
could not be set,...
Implement stack in C
Struct:
struct patients{
int id;
int severity;
char *firstName;
char *lastName;
char *state;
int time_spent;
};
Given Array: struct patients*
patientsArray[4] = {&p1, &p2, &p3,
&p4};
Create two functions one for pushing this array to the
stack and one for popping the variables such as p1 p2 p3 p4 by its
ID
Write a code fragment in C language that tests the value of an
integer num1. If the value is 10, square num1. If it is 9,
read a new value into num1. If it is 2 or 3, multiply num1 by 99
and print out the result. Implement your code using
SWITCH statements