Answer and Explanation:
There are many disadvantage of file based system that are.
- Information redundancy (duplicate data in multiple files)
- Information inconsistency (different value used for same attributes)
- Trouble in accessing data
- Limited data sharing (this is the main problem of the file based system)
- Trustworthiness problem
- Atomicity problems
- Simultaneous Access Anomalie
- security problem
- Data isolation problem
A/b testing is comparing two versions of a web page to see which one performs better
Answer:
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Explanation:
Okay, here are the steps to be taken in order to be able to Write a program that determines the price of a movie ticket as given in details in the question above. Therefore, checked the steps below;
==> Input the age and the time.
==> If the age is not greater than 13, input the time(that is <1700) and follow it by imputing the price.
And if the age is greater than 13, you will also need to input the price. Just as below;
#include <iostream>
using namespace std;
int main() {
int age,time;
float price;
cout<<"Enter age:";
cin>>age;
cout<<"Enter time(in 24 hour clock for noon 1200):";
cin>>time;
if(age>13){
if(time<1700){
price=5;
}else{
price=8;
}
}else{
if(time<1700){
price=2;
}else{
price=4;
}
}
cout<<"Price: $"<<price<<endl;
}
Is advertising influencing her?
What are her motivations?
Has she compared prices?
Is she buying at the right time?