Create a class student with public member variables

Create a class Student with public member variables: Student name, student number, contact number, ID number. The following specifications are required:

 Add init() method of the class that initializes string member variables to empty strings and numeric values to 0.

 Add the method populate() to the class. The method is used to assign values to the member variables of the class.

 Add the method display() to the class. The method is used to display the member variables of the class.

 Create an instance StudentObj of the class Student in a main program.

 The main program should prompt the user to enter values for five students. The attributes should be assigned to the instance of Student using its populate() method, and must be displayed using the display() method of the instance of Student.

MN Lambda student here

Good morning, all! I'm a stay-at-home dad from the balmy state of Minnesota. I'm currently attending Lambda School's Frontend WebDev program, and loving it. I'm an avid reader, movie buff, video game lover, and comic fanatic. I worked as a website support specialist for an ISP some 20+ years ago. Now that my kiddo is school age, I figured I'd delve officially back into my burgeoning love for coding. I'm excited to be a part of this community and can't wait to interact with you all!

Student Course Allocation Problem with Many Constraints

Problem statement

In a university, there are $ t$ course categories, $ m$ courses, $ n$ sections, $ p$ students.

$ i$ th section has:

  1. A student capacity: $ cap_i$ .
  2. Two lecture timings. (Formally, each section has two elements from $ S$ associated with itself, where $ S$ contains all lecture timings.)
  3. A parent course $ course_i$ . ($ m \leq n$ )

$ i$ th course has:

  1. Some lecture section(s) under it. (As mentioned above.)
  2. A parent course category $ category_i$ . ($ t \leq m$ )

Each student has ordered all $ n$ sections from $ 1$ to $ n$ on the basis of his/her preference.

Now, each student $ i$ has to be allocated $ q_i$ ($ 2 \geq q_i \geq 1$ ) sections such that:

  1. No student has been allocated more than two or more section that have the same element(s) from $ S$ associated with themselves. Formally, if the sets of lecture timings of allocated sections for a student $ i$ are $ T_1$ , $ T_2$ , $ \cdots$ , $ T_{q_i}$ , then allocation should ensure that $ |T_1 \cup T_2 \cup \cdots \cup T_{q_i}| = 2{q_i}$ .
  2. No student has been allocated two or more sections which have the same parent course.
  3. No student has been allocated more than $ u$ sections which have a parent course which have the same course category. ($ u \geq 1$ ) Formally, let $ X$ be a list of $ category_{course_{j}}$ where $ j$ is any section allocated to a student. The frequency of any element in $ X$ should not exceed $ u$ .
  4. No section $ j$ is allocated to more than $ cap_j$ students.
  5. $ \sum_{j=1}^p cost(j)$ is minimized. $ cost(x)$ is defined as the sum of positions of the $ x$ th student’s allocated sections’ in his/her preference list. For example, a student had ordered the courses P, Q, R, S in the order: R, Q, S, P. If he/she was allocated Q and S, cost() function will return 5. (2+3)

Constraints:

  • $ 1 \leq t \leq 7$
  • $ 3 \leq m \leq 9$
  • $ 5 \leq n \leq 30$
  • $ 250 \leq p \leq 700$
  • $ \sum_{i=1}^p q_i \leq \sum_{i=1}^n cap_i$

My take

I tried to represent the problem in the form of a k-partite graph. Doing so would have helped flow network implement network flow algorithms like minimum-cost, maximum-flow. However, I have not been able to come up with any representation that satisfies all of the given constraints.

Any help appreciated!

I’m a student and I need help.

I have serious problems with my studies and my Professor told me that if I do not pass three essays tomorrow, then I will have debts until next year and stay to work for the summer. This is terrible. How can I quickly solve the problem with writing an essay? It takes a long time.

Arriving in France before the start of a Student Visa. Can I go to the UK and come back to France?

I’m American and currently applying for a Student Long Stay Visa in France (>90 days; it’s a 2 year Master’s program). My visa appointment with the consulate is in mid-July. My school starts on September 16th, and I’ve stated on the application that I plan to go to France on September 1st.

Well it turns out that it would be better for me to go to France August 1st. I was wondering if it’s possible that I could go to France on a tourist visit (which does not require a visa for stays <90 days) and then take a short weekend trip to the UK (at the end of August) before returning and presenting them with my student visa?

I know that I technically cannot combine a long stay visa with a tourist visit. However this isn’t technically combining the two as I would be leaving the Schengen territory and re-entering, right?

I can’t easily ask to make the start of my visa August 1st because my boyfriend recently got the attestation d’accueil (proof of accommodation for the first 3 months of my stay) validated by the mairie and the start date for this document is on September 1st.

Thanks in advance for your responses!

Does a student need transit Visa in London [duplicate]

This question already has an answer here:

  • Is there a way to find out if I need a transit visa for a layover in the UK? 2 answers

I am a student and I am travelling from India to USA. I am on F1 visa and my layover is in London of 17 hours. My flight is American airlines and will reach in London airport at 3:20pm and depart next day at 7am from same airport.

Do I need a transit visa ?