Input is the right answer.hope it helps.
Answer:
See explaination
Explanation:
#include<iostream>
using namespace std;
const char* firstOfAny(const char *str1,const char *str2){
const char *p=str1;
while((*p)!='\0'){
const char *q=str2;
while((*q)!='\0'){
if((*p)==(*q)){return p;}
q++;
}
p++;
}
return p;
}
int main(){
cout<<firstOfAny("ZZZZuker","aeiou");
cout<<endl;
cout<<firstOfAny("ZZZzyx","aeiou");
return 0;
}
Which of the following are benefits of designing a scalable system? Choose 3 options.
- ability to maintain a high level of service for customers ✔
system will never need to grow again
- Ability to respond to user volume issues more quickly ✔
- guaranteed system access for all users ✔
users may never know that a site has experienced tremendous growth
Answer:
total = 0
items = int(input("Enter the number of items ordered: "))
for i in range(items):
price = float(input("Enter the price of item " + str(i+1) + ": "))
total += price
if total < 200:
total += (items * 10)
print("Bill is $" + str(total))
Explanation:
*The code is in Python.
Ask the user to enter the number of items ordered
Create a for loop that iterates depending on the number of items ordered. Inside the loop, ask the price of each item and add it to the total
After the loop, check the total. If it is smaller than 200, add 10 for each item to the total
Print the total