This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(1) Faça um algoritmo que solicite ao usuário números e os armazene em um vetor de 30 posições. Crie uma função que recebe o vetor preenchido e substitua todas as ocorrência de valores positivos por 1 e todos os valores negativos por 0. | |
(2) Escrever um programa que receba do usuário uma lista numérico unidmensinal e verifique se há algum número negativo no vetor. Mostrar mensagem afirmativa ou negativa. | |
(3) Crie uma função que recebe uma lista de números e | |
a. retorne o maior elemento | |
b. retorne a soma dos elementos | |
c. retorne o número de ocorrências do primeiro elemento da lista | |
d. retorne a média dos elementos | |
e. retorne o valor mais próximo da média dos elementos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{table}[htb] | |
\centering | |
\caption{Cronograma proposto para realização do projeto de doutorado.} | |
\label{tab:cronograma} | |
\fontsize{6pt}{\baselineskip}\selectfont | |
\begin{tabular}{|c|l|c|c|c|c|c|c|c|c|} | |
\hline \hline | |
\textbf{\#} & \multicolumn{1}{c|}{\textbf{Atividades a serem realizadas}} & \textbf{\begin{tabular}[c]{@{}c@{}}1o sem. \\ 2017\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}2o sem.\\ 2017\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}1o sem. \\ 2018\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}2o sem. \\ 2018\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}1o sem. \\ 2019\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}2o sem. \\ 2019\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}1o sem. \\ 2020\end{tabular}} & \textbf{\begin{tabular}[c]{@{}c@{}}2o sem. \\ 2020\end{tabular}} \\ \hline \hline | |
1 & Disciplinas & X |