Please Help me in this C++ task, it is really important to not send me out from school. hope you can help me.
The Brothers Inc. sells different products. We know the prices and selling quantities of each product on one day. Your tasks are the following:
- Was there any unsold product?
- Write a program that counts and lists those products which are more expensive than 8000 HUF. Example (only the data, the explanations are not part of the input, communication with the user is not included): Input Output 6 [count of products] Yes [answer to Task 1] 9000 1 [price and quantity of the 1st product] 2 1 3 [answer to Task 2] 8000 2 [price and quantity of the 2nd product] 8500 0 [price and quantity of the 3rd product] 7200 3 [price and quantity of the 4th product] 6800 4 [price and quantity of the 5th product] 5300 5 [price and quantity of the 6th product]
kindly find the picture of the task enter image description here
#include <iostream>
using namespace std;
int main() {
int pCount, Price, Quantinty;
cout<<"Hello";
return 0;
}
Aucun commentaire:
Enregistrer un commentaire