If you use a standard US keyboard, the easiest way would be to use the US International layout. It provides the most simple approach, using three "dead keys" (^, ', and `) to provide accented letters such as ê, é, è. Type the dead key corresponding to the accent mark you want, and then the corresponding vowel. Typing a dead key and then space, or another character to which the accent does not relate, gives the dead key's original value (plus the other key's character, if it was not space). Alt_right+, (as a chord not a sequence) provides you a ç.
To add US International as an active keyboard layout in Ubuntu 24.04, go to Keyboards in settings, choose "English (United States)" which gives a sub-list of US English Keyboards that includes "English (US, intl., with dead keys)". Detailed instructions with screenshots here.
You can easily switch back to your regular keyboard layout. The default shortcut to switch between keyboards is super+space.
Alternatively, one can enable a Compose key. The compose key allows a wide variety of characters to be entered. It works with your regular keyboard layout. In Ubuntu 24.04, the compose key is set in Keyboard settings, under "Special Character Entry". To use it, press the compose key and then a sequence of characters. For accents these are the same "dead keys" but in reverse order from US International: letter first, then accent. If you defined for example left Alt as the compose key, you for é you would type left_Alte'. And ç is left_Altc,.