#include
Program: using namespace std;
string createPurchaseOrder0;
int main(
{
cout<return 0;
}
string createPurchaseOrder(
{
int qty;
double costPerltem;
string description,info="":
cout<<"Enter Quantity:
cin>>qty;
cout<<"Enter cost per item: "
cin>>costPerltem;
cout<<"Enter Description: "
cin>>description;
if(qty<0 I| costPerltem<0
Idescription.compare(''"')==0)
cout<<'InThe entered data is invalid!":
info="":
else
"
cout<<"'InThe entered data is valid!":
info=info+"'(nQuantity: "+to_string (qty) +" In";
info=info+"Cost per item:
"†to_string (costPerltem)+"In";
info=info+"Description: "description+" In";
return info;
Output:
Answer:
def corresponding_of_lists(lst1, lst2):
c = ""
corresponding_list = []
if (lst1 is None) or (lst2 is None):
return None
else:
for i in lst1:
for j in lst2:
c = "(" + str(i) + "," + str(j) + ")"
corresponding_list.append(c)
return corresponding_list
Explanation:
- Create a function called corresponding_of_lists that takes two lists as parameter
- Initialize an empty list to hold the corresponding values
- Check if any of the lists are null, if they are return None
- Otherwise, get the corresponding elements and put them into the corresponding_list
Return the corresponding_list
D iTunes hope this helps!
Answer:
<h2>The TCP/IP model consists of four layers: application, transport, internet, and network access. Of these four layers, it is the internet layer that is responsible for routing messages.</h2>