0
Who can solve it and explain it to me?
Matrices You are given a double array of items in a store that have different prices (see template). Write a program that gets a "percentage discount" on sales as input and outputs the prices of the discounted items on a line in the same sequence as the one given and separated by a space (""). Input example 25 Output example 375 9.3 70.5 33.75 2.25 60.75 750.675 63.75 67.5 0.75 26.25
3 ответов
+ 5
Fransisco Estrada ,
before we can help you, you should show us your attempt first. we are nit going to solve this task for you, but we are very pleased to support you so that you are able to solve this task by yourself.
if you have not done a try by yourself upto now, please do so.
=> put your code in playground and link it here.
some hints:
▪︎...
▪︎iterate over the array
▪︎take each element from the input array and calculate the new value
▪︎print each new value as mentioned in the task description.
happy coding!
+ 3
Dude is this question from your hw/assignments?🌝
+ 1
that's right, I just can't understand ...