write a program to select the classes that you are taking(Ex. Computer Science) .When the button is clicked, the program should print the names of the computer language studied. If no, check boxes have been selected, the sentence "No language studied should be printed

What have you done so far and what is your question?

We provide help for programming, but sorry, we do not write the program for you.

Sure! Here's an example of a Python program that allows you to select multiple classes and print the names of the computer languages studied when a button is clicked:

```python
import tkinter as tk

def print_selected_languages():
selected_languages = []
if computer_science_var.get():
selected_languages.append("Python")
if math_var.get():
selected_languages.append("R")
if physics_var.get():
selected_languages.append("Fortran")

if selected_languages:
print("Computer languages studied: " + ", ".join(selected_languages))
else:
print("No language studied.")

root = tk.Tk()
root.title("Course Selection")

# Create check buttons for each class
computer_science_var = tk.IntVar()
cs_check_button = tk.Checkbutton(root, text="Computer Science", variable=computer_science_var)
cs_check_button.pack()

math_var = tk.IntVar()
math_check_button = tk.Checkbutton(root, text="Math", variable=math_var)
math_check_button.pack()

physics_var = tk.IntVar()
physics_check_button = tk.Checkbutton(root, text="Physics", variable=physics_var)
physics_check_button.pack()

# Create a button to print selected languages
print_button = tk.Button(root, text="Print Selected Languages", command=print_selected_languages)
print_button.pack()

root.mainloop()
```

Explanation:
1. We start by importing the `tkinter` module, which is used for creating graphical user interfaces.
2. Next, we define a function `print_selected_languages()`, which will be executed when the button is clicked.
3. Inside the function, we check the status of each checkbox variable and add the corresponding language to the `selected_languages` list if the checkbox is selected.
4. If any languages are selected, we join the list elements with commas and print a message indicating the languages studied. If no languages are selected, we print "No language studied."
5. Then, we create an instance of the main window by calling `tk.Tk()` and set its title to "Course Selection".
6. We create check buttons for each class using the `Checkbutton` widget and associate a corresponding `IntVar` to each checkbox to represent its status (selected or not selected).
7. Next, we create a button with the label "Print Selected Languages" and bind it to the `print_selected_languages` function using the `command` parameter.
8. Finally, we call `root.mainloop()` to start the main event loop and display the GUI.

To run this program, make sure you have Python and the `tkinter` module installed. Run the script, and the GUI window will open. Select the classes by checking the checkboxes, and then click the "Print Selected Languages" button to see the output in the terminal.