Description
Implement loops and selection control statement in your advanced calculator.
Be creative. Have the program loop and allow the user to choose what operation to perform.
Evaluate the input from the user to match it to a value you choose for a particular operation.
Allow the program to exit at some point. please send me the answer in .CPP or .TXT file and thank you.
Unformatted Attachment Preview
//Create a simple program that stores the values of 2 variables,//Then perfoms the
following operations and store the results in�//at least one other variable://Addition//-Substration//-Multiplication//-Square//-Cube//-Modulo// if the result of
the addition operation is less than five, then tell the user the numbers are low//
if the result of the addition operation is greater than five, then tell the user
the numbers are high// if the result of the addition operation is five, then tell
the user the numbers are good//Wee need to use the control statements to solve some
complex problem and direct the flow of execution�//of our program:// if// if-else//
switch// do-while// while// for// break// return//�//Preprocessor Directives
//#include "StdAfx.h"#include #include using namespace std;
//Global Declarations//Create my variables (Declaration)
//*** Create variables
to hold values
double Variable1; double Variable2; //*** Create variable (s) to
hold the result of the operations double OperationResult1, OperationResult2,
OperationResult3;//Function Declarationsfloat Addition_Operation();//Define an
object for a simple calculatorclass Simple_Calculator{
public:
//Data
members
double Variable1;
double Variable2;
double Result;
//Constructor for this object
Simple_Calculator()
{
Variable1 = 0;
Variable2 = 0;
Result = 0;
}
//Function Set-UP:
Initialize your data members
void Set_Up()
{
Variable1 = 4;
Variable2 = 6;
Result = 0;
}
//Methods (members)
double Addition()
{
//Perform Addition�
//*** Add Variable1 and Variable2 and
save the result
Result = Variable1 + Variable2;
//***
Output the result on the screen
cout
Purchase answer to see full attachment
Purchase answer to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Hi buddy. I have finished the assignment. I have tried upload the program as a .cpp or .sln in visua...
Completion Status:
100%
Review
Review
Anonymous
Really useful study material!
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
Programming I Discussion
What are the key constructs required to create a loop? Identify two scenarios that may require two different types of loo ...
Programming I Discussion
What are the key constructs required to create a loop? Identify two scenarios that may require two different types of loops. Be sure to provide specific details for each scenario that illustrate why the different types of loops are required. Actively participate in this discussion by providing constructive feedback on the scenarios and details posted by your peers.
CSCI1145 Columbus State Community Unit 13 Role of an SEO Specialist Essay
Unit 13 – Exercise 10
In this assignment you will play the role of an SEO specialist by adding some additional SEO frien ...
CSCI1145 Columbus State Community Unit 13 Role of an SEO Specialist Essay
Unit 13 – Exercise 10
In this assignment you will play the role of an SEO specialist by adding some additional SEO friendly content to an existing web page.
Download the Starter Files from Blackboard to begin work in Exercise 10
Unzip/Uncompress the Starter Files folder
Open the index.html file in a text editor
Add relevant keywords to the <head> section of the document using the <meta> keywords tag
Add a description for the page to the <head> that will help its SEO using the <meta> description tag
Add yourself as the author of the page in the <head> section using the <meta> author tag
In the <body> section alter the content of the first <h1> tag to make it slightly more SEO friendly and more reflective of the page’s contents. Don’t type a sentence, leave it more of a keyword phrase.
Save your changes to index.html
Zip/Compress the Starter Files folder
Return to Blackboard and submit the compressed folder via the Exercise 10 link
Python_Panda Project
https://classroom.udacity.com/nanodegrees/nd002/pa...OverviewIn this project, you will make use of Python to explore data ...
Python_Panda Project
https://classroom.udacity.com/nanodegrees/nd002/pa...OverviewIn this project, you will make use of Python to explore data related to bike share systems for three major cities in the United States—Chicago, New York City, and Washington. You will write code to import the data and answer interesting questions about it by computing descriptive statistics. You will also write a script that takes in raw input to create an interactive experience in the terminal to present these statistics.Bike Share DataOver the past decade, bicycle-sharing systems have been growing in number and popularity in cities across the world. Bicycle-sharing systems allow users to rent bicycles on a very short-term basis for a price. This allows people to borrow a bike from point A and return it at point B, though they can also return it to the same location if they'd like to just go for a ride. Regardless, each bike can serve several users per day.Thanks to the rise in information technologies, it is easy for a user of the system to access a dock within the system to unlock or return bicycles. These technologies also provide a wealth of data that can be used to explore how these bike-sharing systems are used.In this project, you will use data provided by Motivate, a bike share system provider for many major cities in the United States, to uncover bike share usage patterns. You will compare the system usage between three large cities: Chicago, New York City, and Washington, DC.The DatasetsRandomly selected data for the first six months of 2017 are provided for all three cities. All three of the data files contain the same core six (6) columns:Start Time (e.g., 2017-01-01 00:07:57)End Time (e.g., 2017-01-01 00:20:53)Trip Duration (in seconds - e.g., 776)Start Station (e.g., Broadway & Barry Ave)End Station (e.g., Sedgwick St & North Ave)User Type (Subscriber or Customer)The Chicago and New York City files also have the following two columns:GenderBirth YearData for the first 10 rides in the new_york_city.csv fileThe original files are much larger and messier, and you don't need to download them, but they can be accessed here if you'd like to see them (Chicago, New York City, Washington). These files had more columns and they differed in format in many cases. Some data wrangling has been performed to condense these files to the above core six columns to make your analysis and the evaluation of your Python skills more straightforward. In the Data Wrangling course that comes later in the Data Analyst Nanodegree program, students learn how to wrangle the dirtiest, messiest datasets, so don't worry, you won't miss out on learning this important skill!Statistics ComputedYou will learn about bike share use in Chicago, New York City, and Washington by computing a variety of descriptive statistics. In this project, you'll write code to provide the following information:#1 Popular times of travel (i.e., occurs most often in the start time)most common monthmost common day of weekmost common hour of day#2 Popular stations and tripmost common start stationmost common end stationmost common trip from start to end (i.e., most frequent combination of start station and end station)#3 Trip durationtotal travel timeaverage travel time#4 User infocounts of each user typecounts of each gender (only available for NYC and Chicago)earliest, most recent, most common year of birth (only available for NYC and Chicago)The FilesTo answer these questions using Python, you will need to write a Python script. To help guide your work in this project, a template with helper code and comments is provided in a bikeshare.py file, and you will do your scripting in there also. You will need the three city dataset files too:chicago.csvnew_york_city.csvwashington.csvAll four of these files are zipped up in the Bikeshare file in the resource tab in the sidebar on the left side of this page. You may download and open up that zip file to do your project work on your local machine.Some versions of this project also include a Project Workspace page in the classroom where the bikeshare.py file and the city dataset files are all included, and you can do all your work with them there.
IT117 Purdue University Global Form Field Validation to An HTML Form Project
Purpose This activity will enhance your website form building skills. You will be asked to add form field validation to yo ...
IT117 Purdue University Global Form Field Validation to An HTML Form Project
Purpose This activity will enhance your website form building skills. You will be asked to add form field validation to your Contact Us page contact form. You will add validation using HTML elements as well as JavaScript.Assignment Instructions Part 1 – Form Field Validation:Open contactus.html in Notepad to edit.Add the “required” attribute to three fields of your Web form. This will force the user to add content to the fields before the form will submit correctly.For example: <input type=”email” name=”email” required>Add a text field to the form that asks the user to create a four-digit passcode. Add a button next to the field for the user to test the passcode. Include instructions for the passcode field. Note: The text field will test that the passcode entered contains numeric digits only and that the passcode is four digits long. It does not actually set a secure passcode.To complete this step, type the following code into your Web form:<h2>Enter your four-digit passcode, then click OK:</h2><input ud="id1" type="number" min="1000" max="9999"><button onclick= "myFunction()">OK</button><p id="passcode"></p><script>function myFunction() {var inpObj = document.getElementById("id1");if (inpObj.checkValidity() == false) {document.getElementById("passcode").innerHTML =inpObj.validationMessage;} else {document.getElementById("passcode").innerHTML = "Passcode Valid";}}</script>This code includes a function that is triggered as a validation when the user enters text into the input field and clicks the button. The function will allow the user to enter any 4-digit number value from 1000 to 9999. It will also return a message (using document.getElementById) so the user knows the passcode entered is valid. You should only edit this code if you fully understand the JavaScript or your validation may stop working.Add one of each of the listed additional form elements to your existing form:Radio groupCheckboxDrop menuReset buttonSave contactus.html.Part 2 – More Form FormattingAdd formatting to the existing internal CSS in contactus.html for the form elements added in step 1 above. Code your new style rules inside the existing <style type=”text/css”></style> tags that is in the head of the document.This formatting can include any of the following (at least 2 required):Background colorBorder colorBorder rounded corners (border-radius)PaddingWidthAdd a background color to the passcode field. Choose a background color that is different than all other text input fields.Hint: The passcode field is type=”number”.Save contactus.css and close.Upload contactus.html to the server.
IT649 Southern New Hampshire Week 5 User Profile and User Journey Paper
Prompt: For this milestone, you will continue to redesign the spa website. This step in the redesign process will be to de ...
IT649 Southern New Hampshire Week 5 User Profile and User Journey Paper
Prompt: For this milestone, you will continue to redesign the spa website. This step in the redesign process will be to develop a persona (user profile) and a user journey. Specifically, you will address the following: Persona (User Profile): Using data from the customer survey and interviews with former, current, and prospective clients, plus your imagination, create a robust and detailed persona (user profile) for a user of the spa website. You can use the mock survey and interview data provided for you, but you might need to use your imagination to flesh out the profile to make it robust and detailed. Your persona (user profile) should answer questions such as these: What is the age and gender of the typical user of the spa website? Why does the user visit the spa’s website? Which pages would the user most likely visit? User Journey: Identify a task that a customer would execute on the spa website and describe the steps the customer will take to execute the task. The particular task you choose is up to you, but it should be a task that a customer of a spa would need to execute. For example, what are the steps a user would take to schedule an appointment?
Similar Content
Please answer all parts in question 2
Background River cross‐sectional areas are required for several tasks in water resources engineering, including flood ...
Boston University Performance Assessment Questions
Being able to reflect on a situation and articulate next steps or ways to improve is an important skill in any field. In t...
CSE 4316 UTA System Requirements Specification of Place Holder Image Project Paper
we are doing a project about golf sewing analyses platform just like in the YouTube link above:I will provide the pdf for ...
i want someone to program a game
the game is hangman the requirements are: 1- 50+ words 2- clean the screen each loop 3- draw the hangman 4- win / lose scr...
UW Using WordPress to Build a Website for The Timeless Season Magazine Fashion Insight
Use WordPress to make a website for the "Timeless Season" magazine about fashion insights, primarily for this article: htt...
my country is great, programming homework help
need it according to the required specification...
Project Management Software
Functions that project management software provides that cannot easily use other tools Spreadsheets and databases are very...
43950630
SELECT emp_lname, emp_fname, job_code, emp_hiredate FROM EMPLOYEE; SELECT emp_lname, emp_fname, emp_hiredate FROM EMPLOYEE...
Solution Overview
I have attached the project zip file which contains all the code for the solution. I have also included a video showing th...
Related Tags
Book Guides
50 Shades of Grey
by E. L. James
The Secret Life of Bees
by Sue Monk Kidd
Crippled America
by Donald J Trump
The Goldfinch
by Donna Tartt
The Mayor of Casterbridge
by Thomas Hardy
Mrs Dalloway
by Virginia Woolf
The Remains Of The Day
by Kazuo Ishiguro
The President is Missing
by James Patterson, Bill Clinton
Death Of A Salesmen
by Arthur Miller
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
Programming I Discussion
What are the key constructs required to create a loop? Identify two scenarios that may require two different types of loo ...
Programming I Discussion
What are the key constructs required to create a loop? Identify two scenarios that may require two different types of loops. Be sure to provide specific details for each scenario that illustrate why the different types of loops are required. Actively participate in this discussion by providing constructive feedback on the scenarios and details posted by your peers.
CSCI1145 Columbus State Community Unit 13 Role of an SEO Specialist Essay
Unit 13 – Exercise 10
In this assignment you will play the role of an SEO specialist by adding some additional SEO frien ...
CSCI1145 Columbus State Community Unit 13 Role of an SEO Specialist Essay
Unit 13 – Exercise 10
In this assignment you will play the role of an SEO specialist by adding some additional SEO friendly content to an existing web page.
Download the Starter Files from Blackboard to begin work in Exercise 10
Unzip/Uncompress the Starter Files folder
Open the index.html file in a text editor
Add relevant keywords to the <head> section of the document using the <meta> keywords tag
Add a description for the page to the <head> that will help its SEO using the <meta> description tag
Add yourself as the author of the page in the <head> section using the <meta> author tag
In the <body> section alter the content of the first <h1> tag to make it slightly more SEO friendly and more reflective of the page’s contents. Don’t type a sentence, leave it more of a keyword phrase.
Save your changes to index.html
Zip/Compress the Starter Files folder
Return to Blackboard and submit the compressed folder via the Exercise 10 link
Python_Panda Project
https://classroom.udacity.com/nanodegrees/nd002/pa...OverviewIn this project, you will make use of Python to explore data ...
Python_Panda Project
https://classroom.udacity.com/nanodegrees/nd002/pa...OverviewIn this project, you will make use of Python to explore data related to bike share systems for three major cities in the United States—Chicago, New York City, and Washington. You will write code to import the data and answer interesting questions about it by computing descriptive statistics. You will also write a script that takes in raw input to create an interactive experience in the terminal to present these statistics.Bike Share DataOver the past decade, bicycle-sharing systems have been growing in number and popularity in cities across the world. Bicycle-sharing systems allow users to rent bicycles on a very short-term basis for a price. This allows people to borrow a bike from point A and return it at point B, though they can also return it to the same location if they'd like to just go for a ride. Regardless, each bike can serve several users per day.Thanks to the rise in information technologies, it is easy for a user of the system to access a dock within the system to unlock or return bicycles. These technologies also provide a wealth of data that can be used to explore how these bike-sharing systems are used.In this project, you will use data provided by Motivate, a bike share system provider for many major cities in the United States, to uncover bike share usage patterns. You will compare the system usage between three large cities: Chicago, New York City, and Washington, DC.The DatasetsRandomly selected data for the first six months of 2017 are provided for all three cities. All three of the data files contain the same core six (6) columns:Start Time (e.g., 2017-01-01 00:07:57)End Time (e.g., 2017-01-01 00:20:53)Trip Duration (in seconds - e.g., 776)Start Station (e.g., Broadway & Barry Ave)End Station (e.g., Sedgwick St & North Ave)User Type (Subscriber or Customer)The Chicago and New York City files also have the following two columns:GenderBirth YearData for the first 10 rides in the new_york_city.csv fileThe original files are much larger and messier, and you don't need to download them, but they can be accessed here if you'd like to see them (Chicago, New York City, Washington). These files had more columns and they differed in format in many cases. Some data wrangling has been performed to condense these files to the above core six columns to make your analysis and the evaluation of your Python skills more straightforward. In the Data Wrangling course that comes later in the Data Analyst Nanodegree program, students learn how to wrangle the dirtiest, messiest datasets, so don't worry, you won't miss out on learning this important skill!Statistics ComputedYou will learn about bike share use in Chicago, New York City, and Washington by computing a variety of descriptive statistics. In this project, you'll write code to provide the following information:#1 Popular times of travel (i.e., occurs most often in the start time)most common monthmost common day of weekmost common hour of day#2 Popular stations and tripmost common start stationmost common end stationmost common trip from start to end (i.e., most frequent combination of start station and end station)#3 Trip durationtotal travel timeaverage travel time#4 User infocounts of each user typecounts of each gender (only available for NYC and Chicago)earliest, most recent, most common year of birth (only available for NYC and Chicago)The FilesTo answer these questions using Python, you will need to write a Python script. To help guide your work in this project, a template with helper code and comments is provided in a bikeshare.py file, and you will do your scripting in there also. You will need the three city dataset files too:chicago.csvnew_york_city.csvwashington.csvAll four of these files are zipped up in the Bikeshare file in the resource tab in the sidebar on the left side of this page. You may download and open up that zip file to do your project work on your local machine.Some versions of this project also include a Project Workspace page in the classroom where the bikeshare.py file and the city dataset files are all included, and you can do all your work with them there.
IT117 Purdue University Global Form Field Validation to An HTML Form Project
Purpose This activity will enhance your website form building skills. You will be asked to add form field validation to yo ...
IT117 Purdue University Global Form Field Validation to An HTML Form Project
Purpose This activity will enhance your website form building skills. You will be asked to add form field validation to your Contact Us page contact form. You will add validation using HTML elements as well as JavaScript.Assignment Instructions Part 1 – Form Field Validation:Open contactus.html in Notepad to edit.Add the “required” attribute to three fields of your Web form. This will force the user to add content to the fields before the form will submit correctly.For example: <input type=”email” name=”email” required>Add a text field to the form that asks the user to create a four-digit passcode. Add a button next to the field for the user to test the passcode. Include instructions for the passcode field. Note: The text field will test that the passcode entered contains numeric digits only and that the passcode is four digits long. It does not actually set a secure passcode.To complete this step, type the following code into your Web form:<h2>Enter your four-digit passcode, then click OK:</h2><input ud="id1" type="number" min="1000" max="9999"><button onclick= "myFunction()">OK</button><p id="passcode"></p><script>function myFunction() {var inpObj = document.getElementById("id1");if (inpObj.checkValidity() == false) {document.getElementById("passcode").innerHTML =inpObj.validationMessage;} else {document.getElementById("passcode").innerHTML = "Passcode Valid";}}</script>This code includes a function that is triggered as a validation when the user enters text into the input field and clicks the button. The function will allow the user to enter any 4-digit number value from 1000 to 9999. It will also return a message (using document.getElementById) so the user knows the passcode entered is valid. You should only edit this code if you fully understand the JavaScript or your validation may stop working.Add one of each of the listed additional form elements to your existing form:Radio groupCheckboxDrop menuReset buttonSave contactus.html.Part 2 – More Form FormattingAdd formatting to the existing internal CSS in contactus.html for the form elements added in step 1 above. Code your new style rules inside the existing <style type=”text/css”></style> tags that is in the head of the document.This formatting can include any of the following (at least 2 required):Background colorBorder colorBorder rounded corners (border-radius)PaddingWidthAdd a background color to the passcode field. Choose a background color that is different than all other text input fields.Hint: The passcode field is type=”number”.Save contactus.css and close.Upload contactus.html to the server.
IT649 Southern New Hampshire Week 5 User Profile and User Journey Paper
Prompt: For this milestone, you will continue to redesign the spa website. This step in the redesign process will be to de ...
IT649 Southern New Hampshire Week 5 User Profile and User Journey Paper
Prompt: For this milestone, you will continue to redesign the spa website. This step in the redesign process will be to develop a persona (user profile) and a user journey. Specifically, you will address the following: Persona (User Profile): Using data from the customer survey and interviews with former, current, and prospective clients, plus your imagination, create a robust and detailed persona (user profile) for a user of the spa website. You can use the mock survey and interview data provided for you, but you might need to use your imagination to flesh out the profile to make it robust and detailed. Your persona (user profile) should answer questions such as these: What is the age and gender of the typical user of the spa website? Why does the user visit the spa’s website? Which pages would the user most likely visit? User Journey: Identify a task that a customer would execute on the spa website and describe the steps the customer will take to execute the task. The particular task you choose is up to you, but it should be a task that a customer of a spa would need to execute. For example, what are the steps a user would take to schedule an appointment?
Earn money selling
your Study Documents