Title: Standard für CR Weisser
Course: Informatik J1 - Relationale Datenbanken (BPE6) - CODERUNNER

Standardkategorie für Fragen, die im Kontext 'CR Weisser' freigegeben sind.

Exercise: Advanced counting with objects

Recreate the program from Question 4 but encapsulate the GUI code in a class CounterGui. This program should have all the same functionality as the program in Question 4: The program has two buttons and a label that displays the current value of a counter. One button, bearing the text +1, should add one to the counter, while the other button, labelled -1, should subtract one from it. The counter should start at zero.

[Image]

from tkinter import *
from tkinter.ttk import *

# Write your code here

def main():
    """Set up the GUI and run it"""
    window = Tk()
    counter_gui = CounterGui(window)
    window.mainloop()

main()

This question tests your knowledge on calculating the amount of substance.

Type in the mass of your sample of copper sulphate pentahydrate in grams and the amount of substance in moles.

M(CuSO_4 \(\cdot\) 5 H_2O) = 249.685 g/mol

test