subject

Necesito hacer estos dos ejercicios de programación , con el visual Basic que es el programa, podeis ayudarme?? ejercicio 1: Haciendo uso de la aplicación de consola, debes crear un proyecto el cual debe preguntarte por el precio de un producto.

Si el precio que introducimos es inferior a 100, debemos mostrar cuánto es el 10% de ese precio. Si por el contrario es un precio superior o igual a 100 debemos mostrar cuánto es el 20% de ese precio.

En ambos casos debemos mostrar también el valor final de ese precio con el porcentaje incluido.

Debes enviarme el código utilizado en el proyecto (en un Word por ejemplo), explicando el significado de cada línea de código.

Ejercicio 2:
Haciendo uso de la aplicación de consola, debes crear un proyecto el cual debe preguntarte tu nombre y fecha de nacimiento, y devolverte una frase tipo:

”Hola Luis, si naciste viernes 15 de febrero de 1983, tu edad es de 37 años.”

Utiliza las propiedades y métodos de la estructura de fecha aprendidos en el Tema 3.

Debes enviarme el código utilizado en el proyecto (en un Word por ejemplo), explicando el significado de cada línea de código.

Puedes utilizar algún servicio online que permita lanzar código de forma inmediata, por ejemplo https://dotnetfiddle. net/

Gracias

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:00
)a grad student comes up with the following algorithm to sort an array a[1..n] that works by first sorting the first 2/3rds of the array, then sorting the last 2/3rds of the (resulting) array, and finally sorting the first 2/3rds of the new array. 1: function g-sort(a, n) . takes as input an array of n numbers, a[1..n] 2: g-sort-recurse(a, 1, n) 3: end function 4: function g-sort-recurse(a, `, u) 5: if u ⒠` ≤ 0 then 6: return . 1 or fewer elements already sorted 7: else if u ⒠` = 1 then . 2 elements 8: if a[u] < a[`] then . swap values 9: temp ↠a[u] 10: a[u] ↠a[`] 11: a[`] ↠temp 12: end if 13: else . 3 or more elements 14: size ↠u ⒠` + 1 15: twothirds ↠d(2 ◠size)/3e 16: g-sort-recurse(a, `, ` + twothirds ⒠1) 17: g-sort-recurse(a, u ⒠twothirds + 1, u) 18: g-sort-recurse(a, `, ` + twothirds ⒠1) 19: end if 20: end function first (5 pts), prove that the algorithm correctly sorts the numbers in the array (in increasing order). after showing that it correctly sorts 1 and 2 element intervals, you may make the (incorrect) assumption that the number of elements being passed to g-sort-recurse is always a multiple of 3 to simplify the notation (and drop the floors/ceilings).
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Think of a spreadsheet as a giant calculator spread of paper chart data collector
Answers: 2
question
Computers and Technology, 24.06.2019 21:50
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
You know the right answer?
Necesito hacer estos dos ejercicios de programación , con el visual Basic que es el programa, podeis...
Questions
question
Computers and Technology, 16.12.2020 20:50
question
English, 16.12.2020 20:50
question
Chemistry, 16.12.2020 20:50
Questions on the website: 13722363