#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
//variables
int choice;
float radius,base,height,area;
const double PI=3.14159;...
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
//variables
int choice;
float radius,base,height,area;
const double PI=3.14159;
//repeat until user wants to quits
while(true)
{
//menu
cout<<endl<<endl<<"Geometry Calculator"<<endl<<endl;
cout<<"1. Calculate the area of a circle"<<endl;
cout<<"2. Calculate the area of a triangle"<<endl;
cout<<"3. Quit"<<endl<<endl;
//prompt for choice
cout<<"Enter your choice(1-3): ";
cin>>choice;
cout<<endl;
//if choice is circle
if(choice==1)
{
cout<<"What is the radius of the circle? ";
cin>>radius;
//calculating area
area=PI*radius*radius;
cout<<endl<<"The area of the circle is "<<fixed<<setprecision(3)<<area<<endl;
}
//if choice...
**[70 pts]** You will be writing a (rather primitive) online
store simulator. It will have these...
**[70 pts]** You will be writing a (rather primitive) online
store simulator. It will have these classes: Product, Customer, and
Store. All data members of each class should be marked as
**private** (a leading underscore in the name). Since they're
private, if you need to access them from outside the class, you
should do so via get or set methods. Any get or set methods should
be named per the usual convention ("get_" or "set_" followed by the
name of...
Data
For Tasks 1-8, consider the following data:
7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5,...
Data
For Tasks 1-8, consider the following data:
7.2, 1.2, 1.8, 2.8, 18, -1.9, -0.1, -1.5, 13.0, 3.2, -1.1,
7.0, 0.5, 3.9, 2.1, 4.1, 6.5
In Tasks 1-8 you are asked to conduct some computations
regarding this data. The computation should be carried out
manually. All the steps that go into the computation should be
presented and explained. (You may use R in order to verify your
computation, but not as a substitute for conducting the manual
computations.)
A Random...
In this assignment you will write a program that compares the
relative strengths of two earthquakes,...
In this assignment you will write a program that compares the
relative strengths of two earthquakes, given their magnitudes using
the moment magnitude scale.
Earthquakes
The amount of energy released during an earthquake --
corresponding to the amount of shaking -- is measured using the
"moment magnitude scale". We can compare the relative strength of
two earthquakes given the magnitudes m1 and m2 using this
formula:
f=10^1.5(m1−m2)
If m1>m2, the resulting value f tells us how many times
stronger m1...
I NEED TASK 3 ONLY
TASK 1
country.py
class Country:
def __init__(self, name, pop, area,
continent):...
I NEED TASK 3 ONLY
TASK 1
country.py
class Country:
def __init__(self, name, pop, area,
continent):
self.name =
name
self.pop =
pop
self.area =
area
self.continent =
continent
def getName(self):
return
self.name
def getPopulation(self):
return
self.pop
def getArea(self):
return
self.area
def getContinent(self):
return
self.continent
def setPopulation(self, pop):
self.pop =
pop
def setArea(self, area):
self.area =
area
def setContinent(self, continent):
self.continent =
continent
def __repr__(self):
return
(f'{self.name} (pop:{self.pop}, size: {self.area}) in
{self.continent} ')
TASK 2
Python Program:
File: catalogue.py
from Country...
Description: In this assignment, you need to implement a
recursive descent parser in C++ for the...
Description: In this assignment, you need to implement a
recursive descent parser in C++ for the following CFG: 1. exps
--> exp | exp NEWLINE exps 2. exp --> term {addop term} 3.
addop --> + | - 4. term --> factor {mulop factor} 5. mulop
--> * | / 6. factor --> ( exp ) | INT The 1st production
defines exps as an individual expression, or a sequence expressions
separated by NEWLINE token. The 2nd production describes an...
Item 1
In the case below, the original source material is given along
with a sample...
Item 1
In the case below, the original source material is given along
with a sample of student work. Determine the type of plagiarism by
clicking the appropriate radio button.
Original Source Material
Student Version
In contrast to the transmittal model illustrated by the
classroom lecture-note taking scenario, the constructivist model
places students at the center of the process--actively
participating in thinking and discussing ideas while making meaning
for themselves. And the professor, instead of being the
"sage on the...