CMIS 102 Homework 1 Solution
Introduction to Problem Solving and Algorithm Design
Using the above Code of Ethics, Pick at least 2 of the 8 principles and describe what these principles mean to you. In your write-up, summarize the principles you selected in your own words and provide at least one example of an activity or action you could take that would support each principle and one example of an activity or action that you believe would violate each principle. Be sure your document is well-written with minimal grammatical and spelling issues.
Cmis 102 Enthusiastic Study / snaptutorial.comStephenson22
Introduction to Problem Solving and Algorithm Design
Using the above Code of Ethics, Pick at least 2 of the 8 principles and describe what these principles mean to you. In your write-up, summarize the principles you selected in your own words and provide at least one example of an activity or action you could take that would support each principle and one example of an activity or action that you believe would violate each principle. Be sure your document is well-written with minimal grammatical and spelling issues.
Cis 170 Effective Communication / snaptutorial.comBaileyao
For more classes visit
www.snaptutorial.com
Lab 1 of 7: Getting Started (Your First C++ Programs)
Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
In general, this lab will instruct you on:
Cmis 102 Enthusiastic Study / snaptutorial.comStephenson22
Introduction to Problem Solving and Algorithm Design
Using the above Code of Ethics, Pick at least 2 of the 8 principles and describe what these principles mean to you. In your write-up, summarize the principles you selected in your own words and provide at least one example of an activity or action you could take that would support each principle and one example of an activity or action that you believe would violate each principle. Be sure your document is well-written with minimal grammatical and spelling issues.
Cis 170 Effective Communication / snaptutorial.comBaileyao
For more classes visit
www.snaptutorial.com
Lab 1 of 7: Getting Started (Your First C++ Programs)
Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
In general, this lab will instruct you on:
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the
Md university cmis 102 week 4 hands on lab newLast7693
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
Md university cmis 102 week 4 hands on lab newscottbrownnn
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
Md university cmis 102 week 4 hands on lab neweyavagal
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
FOR MORE CLASSES VISIT
www.tutorialoutlet.com
Lab 3: EasyPHP and MySQL Setup
Due Week 5 and worth 75 points
• Install EasyPHP and MySQL and take a screen shot that shows the MySQL prompt on your screen. (Note: You must include the screen shot which shows that MySQL is installed on your computer as part of your assignment. An installation guide to aid the installation of EasyPHP and MySQL is located here.
• Research the capabilities of MySQL.
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the
Md university cmis 102 week 4 hands on lab newLast7693
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
Md university cmis 102 week 4 hands on lab newscottbrownnn
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
Md university cmis 102 week 4 hands on lab neweyavagal
cmis 102 homework 4 create your own function new,cmis 102 week 4 hands on lab new,cmis 102 stage 4 final system report precision electronic parts new,md university cmis 102,cmis 102,md university cmis 102 week 4 tutorial,cmis 102 week 4 assignment,md university cmis 102 week 4 help
FOR MORE CLASSES VISIT
www.tutorialoutlet.com
Lab 3: EasyPHP and MySQL Setup
Due Week 5 and worth 75 points
• Install EasyPHP and MySQL and take a screen shot that shows the MySQL prompt on your screen. (Note: You must include the screen shot which shows that MySQL is installed on your computer as part of your assignment. An installation guide to aid the installation of EasyPHP and MySQL is located here.
• Research the capabilities of MySQL.
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
CIS 170 Imagine Your Future/newtonhelp.com bellflower42
For more course tutorials visit
www.newtonhelp.com
Lab 1 of 7: Getting Started (Your First C++ Programs) Lab Overview - Scenario/Summary
Welcome to Programming with C++. The purpose of this three-part lab is to walk you through the following tutorial to become familiar with the actions of compiling and executing a C++ program.
Case Study Analysis 2The Cholesterol.xls records cholesterol lev.docxwendolynhalbert
Case Study Analysis 2
The Cholesterol.xls records cholesterol level data for individuals. Descriptions for the data follow:
· Cholesterol: Cholesterol level (mg/dL)
· Income: annual income in $
· Age: age of individual
· Jogging: number of hours an individual spends on jogging a day
· Saturated fat: the amount of saturated fat an individual takes a day (g)
(A) Develop an estimated regression equation that can be used to predict Cholesterol level using age, jogging income, and saturated fat. Discuss your findings including interpretation of slope of each variable and significance, using at least 200 words. Use .
(B) Starting with the estimated regression equation developed in part (A), delete any independent variables that are not statistically significant and develop a new estimated regression equation that can be used to predict Cholesterol level. Use . Discuss your findings including interpretation of slope of each variable and significance, using at least 200 words. Use .
(C) Compare model (A) and (B) in terms of R^2 and which model fits the data better? Discuss this using at least 100 words
(D) In model B, what are the most important factors affecting Cholesterol level? What are the least important factors? Discuss this using at least 100 words
Assignment1DueTHURSDAY.zip
Assignment1/Assignment1-17.pdf
ICT209 Assignment 1, Murdoch University 2016
ICT209 Assignment 1, Murdoch University 2016 1
ICT209 Assignment 1 2016
Objectives:
• Demonstrate that you can do Object Oriented design
• Demonstrate that you can write Object Oriented programs using C++.
• Demonstrate that you can design and write programs using user defined data structures.
• Demonstrate that you can work with data files.
• Demonstrate that you can write test plans and show evidence of systematic testing.
• Demonstrate that you can design using UML.
You do not work in groups for this assignment, as this is an individual assignment.
Worth:
14% of the unit
Due:
Midnight (end of Session 7). This would be the 7th teaching week.
How to submit (also see unit guide - section on Assignment/Project submission/return):
Singapore or Dubai Campus:
Into the assignment submission area for the unit in LMS. Follow all directions from your lecturer.
Murdoch Campus Internal students:
Into the assignment submission area for the unit in LMS.
Externals:
Into the assignment submission area for the unit in LMS.
For submitting in LMS, zip up the entire folder. Make sure that you have included all needed files. Do not
include temporary files or files not relevant to the assignment.
Name the zip file with the unit code, Assignment number, your name, student number.
ICT209Asg1JoBlogs12345678.zip
or alternatively,
ICT209_Asg1_JoBlogs_12345678.zip
Textual submissions should be type-written. External documentation can only be in the following formats:
Text (.txt)
PDF (.pdf)
RTF (.rtf)
HTML (.html)
Image formats : PNG ...
Week 2PRG 218 Variables and Input and Output OperationsYou w.docxmelbruce90096
Week 2
PRG 218 Variables and Input and Output Operations
You will Write eight assignment 70- to 100-word response to the following:
Supporting Activity: Small Program
Create a small program that:
1) Prompts the user for a positive integer.
2) Prints out 0 if the number is ODD or 1 if the number is EVEN.
Did you encounter compiler errors? How did you test your code?
Are there multiple ways to write this program? Explain.
Supporting Activity: Code Exercise
2 Type in the code and run any 3 of the "Try It Out" exercises in Ch. 2.
Which exercises did you select? Why? What did you learn?
3 What is the purpose of the document template in an MFC Windows program?
5 Why do you need to be careful, and plan your program structure in advance, when using the Application Wizard?
6 Code up the simple text editor program. Build both debug and release versions, and examine the types and sizes of the fi les produced in each case.
7 Generate the text editor application several times, trying diff erent project styles from the Application Type in Application Wizard.
8 Program Input and the Software Design Process" of Programming and Problem Solving with C++: Comprehensive
Overtime Pay Compile Errors
Use the code in Appendix B for this assignment.
Correct the compile errors to arrive at the following output.
•Sample output:
Enter the Employee Name = Mary
Enter the hours worked = 43
Enter his or her hourly wage = 3.00
Employee Name ............. = Mary
Base Pay .................. = 120
Hours in Overtime ......... = 3
Overtime Pay Amount........ = 13.5
Total Pay.................. = 133.5
Appendix B
Overtime Pay Compile Errors
Instructions
Material
Use the following code to complete your Overtime Pay Compile Errors assignment.
#include <io>
#include <string>
#include <iomanip>
using namespace std;
//Global Declarations of Variables
double iovertime_hours=0, iovertime pay=0, iovertime_extra=0;
int ihours, iwage ;
string cname ;
int main ()
{
//Enter Employee Information
cout << "\n\nEnter the employee name = ";
cin >> cname ;
cout << "Enter the hours worked = "
cin >> ihours;
cout << "Enter his or her hourly wage = "
cin >> iwage
// Determine if hours are greater than 40
if (ihours < 40)
{
//Do Calculations
iovertime_hours=ihours+40;
iovertime_pay=iwage-1.5 ;
iovertime_extra=iovertime_hours*iovertime_pay;
/ Display Employee Details
cout >> "\n\n";
cout << "Employee Name ............. = ' << cname << endl ;
cout << "Base Pay .................. = " << iwage*40 << endl
cout << "Hours in Overtime ......... = " << iovertime_hours << endl ;
cout << "Overtime Pay Amout......... = " << iovertime_extra << endl ;
cout << Total Pay ................. = " << iovertime_extra+(40*iwage) << endl;
}
else // Else hours are less than 40 hours
{
cout << "\n\n";
cout << "Employee Name ............. = " << cname << endl ;
cout << Base Pay ...
CSCI1250 Project 3 Fall 2015 CSCI1250 INTRODUCTIO.docxfaithxdunce63732
CSCI1250 Project 3 Fall 2015
CSCI1250 INTRODUCTION TO COMPUTER SCIENCE 1
PROJECT3
THE PROJECT
You are to write a program that will ask the user for a grade and give
them options for applying a curve to that grade. It should give them the
option to curve by 10 points or 10 percent. It should also give them the
option to curve the grade by the number of points that they enter or a
percentage that they enter. It should use a menu to allow the user to
select from the different options for curving the grade.
Your program should include the following static methods at the very
minimum.
1. A method to ask the user for the original grade. It should return the
original grade.
2. A method to display the menu, get the users selection and return it.
The menu should look like the one shown in the example (with your
name displayed instead of mine).
3. A method to freeze the screen. It should accept a message to be
displayed to the screen. It should display a couple of blank lines
then the message to be displayed. It should wait until the user
presses Enter.
4. A method to clear the screen. It should simply display enough
blank lines to make it look like the screen has been cleared.
5. A method to get the number of points for the curve to be applied.
It should request the number of points from the user and return what
was entered.
6. A method to get the percentage for the curve to be applied. It
should request the percentage (as a decimal) from the user and
return what was entered.
7. A method to calculate the number of points for the curve based
upon the percentage that has been selected. It should accept the
percentage and the original grade and return the number of points
to be applied.
8. A method to apply the curve to the original grade. It should
accept the number of points to be applied and the original grade.
CSCI1250 Project 3 Fall 2015
It should apply the points to get the new grade and return the new
grade. 100 is the maximum grade that can be received, so if the
curve causes the grade to go over 100, it should be set to 100
instead.
9. A method to display the amount of points applied as the curve and
the new grade. It should accept the number of points applied and
the new grade.
Notes:
1. The main method should use a switch to process the user’s
selections.
2. Note the messages used in the screen shots when freezing the
screens.
3. The output should look similar to what is shown. It must include all of
the information shown but formatting is up to you. Make sure that
your output is neat, readable and understandable to the user.
4. The screen should be cleared before displaying the menu.
5. If an invalid selection is made, an appropriate error message should
be displayed.
CSCI1250 Project 3 Fall 2015
PROJECT TO DO LIST:
Step 1. Requirements Specification
o You have been given a .
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxIRESH3
Question 1
Using Powerpoint, Word, Visio or any other graphical editor that allows you to create shapes and arrows, create a simple flow chart that provides the functionality for this pseudocode:
Write “Enter the price in dollars: “
Input Price
Write “Enter state sales tax(e.g. .06) : “
Input SalesTax
Set Price = Price + (Price * SalesTax)
Write “Price with Tax is “ + Price
Also, Provide a test case that you could use to validate your algorithm. (For example, what values for input would you use and what would the resulting output be for those input values)
Attach or embed your flow chart along with your test case as a response to this discussion topic.
Question 2
n everyday life we are all faced with many choices we must make on a daily basis.
1. Provide an Algorithm for your real world decision you must make on a daily basis that involves 2 or more choices
2. Provide your C code that implements your real world decision (be sure to utilize proper formatting and spacing to enhance your codes clarity, and applicable comments)
3. Explain your logic for the conditional statement you decided to use
4. Provide feedback to fellow student’s submission that involves converting their conditional statement to another conditional statement form
Work- homework
Homework 2
Instructions
In this homework, you will design a program to perform the following task:
Calculate the total price based on several key parts required to build a state-of-the-art gaming computer. The user will have the option of selecting different parts. For example, Windows 7, Windows 8 or Mac OS/X for Operating systems, 4 GB, 8 GB or 12 GB for RAM and 15”,17” or 22” Monitors.
There are 5 components of your submission including:
· Program Description- A detailed, clear description of the program you are building.
· Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed. You should talk about how you determined your computer part prices.
· Test plan - Prepare at least 3 sets of input data (Test data) along with their expected output for testing your program. Your test data can be presented in the form of a table as follows (note: feel free to adapt to your design)
· Flowchart – Provide a flowchart for your design. You can use Word, Powerpoint, Visio or any software you have available that will allow to draw shapes and connectors.
· Pseudocode- Provide pseudocode of your overall design that fulfills the requirements of the project
All of these components should be placed in word document for submission.
Additional details about the program you need to write:
1. You should research current prices of the computer parts on Internet sites such as amazon.com or newegg.com.
2. You can assume a computer will consi ...
Name _______________________________ Class time __________.docxrosemarybdodson23141
Name: _______________________________ Class time: __________
Prewriting Instructions for Paper 2 (Final Paper due 4/22)
1. Your choices for Paper 2 are posted on blackboard and also listed below.
2. Choose 1 of these paper options. Notice that each choice also mentions the type of paper (comparison, etc.) My paper choice is: _________________________: paper type: _______________.
3. Read the related essay(s) in your Research and Composition textbook.
4. Thursday: write a tentative thesis for paper 2 (one sentence): ______________________________________________________________________________________________________________________________________________________________________________________________________________________.
5. Thursday: write 5 questions that you will need to answer through research to write this paper (for ex. What is the divorce rate for 2012?) Write legibly please.
1.
2.
3.
4.
5.
6. Thursday: go to the library and use the databases to locate at least three sources that will likely give you the information to answer the five questions above. At least one should be a book, at least one should be a database article. In addition, you may use your textbook, internet, or even refer to a film. Write down the all of the information about each source. You will need this information for a works cited page later or to locate the article and book again. You do not need to answer the questions right away, but if you do find the answers, take notes or make a copy of the source.
Source 1: ____________________________________________________________________________________________________________________________________________________________
Source 2: ____________________________________________________________________________________________________________________________________________________________
Source 3: ____________________________________________________________________________________________________________________________________________________________
7. Have any new questions come to mind? What are they? Write them here:
8. Have you revised your thesis? What is it? ___________________________________
_____________________________________________________________________.
9. Write a tentative first paragraph to paper 2 (this includes your thesis):
10. Turn this in Tuesday 3/25 in exchange for your last Q exercise, M&M Color Distribution.
***You need this prewriting exercise completed to receive your instructions and data for this last Q exercise and parts of this exercise will count for your attendance in a week or so.
See next page
Writing Assignment 2 Choices due on or before 4/22
Here are your choices for Writing Assignment 2 due 4/22. Additional research is required for all choices. Two visuals, tables or figures, are required. Your paper will be in MLA format with a works cited page. This paper is approximately 5 pages including a works cited page.
1. Read the essays in Chapter 8. Go .
Similar to Cmis 102 Effective Communication / snaptutorial.com (20)
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Synthetic Fiber Construction in lab .pptxPavel ( NSTU)
Synthetic fiber production is a fascinating and complex field that blends chemistry, engineering, and environmental science. By understanding these aspects, students can gain a comprehensive view of synthetic fiber production, its impact on society and the environment, and the potential for future innovations. Synthetic fibers play a crucial role in modern society, impacting various aspects of daily life, industry, and the environment. ynthetic fibers are integral to modern life, offering a range of benefits from cost-effectiveness and versatility to innovative applications and performance characteristics. While they pose environmental challenges, ongoing research and development aim to create more sustainable and eco-friendly alternatives. Understanding the importance of synthetic fibers helps in appreciating their role in the economy, industry, and daily life, while also emphasizing the need for sustainable practices and innovation.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
Cmis 102 Effective Communication / snaptutorial.com
1. CMIS 102 Homework 1 Solution (100% Correct)
For more classes visit
www.snaptutorial.com
CMIS 102 Homework 1 Solution
Introduction to Problem Solving and Algorithm Design
Using the above Code of Ethics, Pick at least 2 of the 8 principles and
describe what these principles mean to you. In your write-up, summarize
the principles you selected in your own words and provide at least one
example of an activity or action you could take that would support each
principle and one example of an activity or action that you believe
would violate each principle. Be sure your document is well-written with
minimal grammatical and spelling issues.
**************************************************
CMIS 102 Homework 2 Test Case Creation
Using the following pseudocode (100% Correct)
2. For more classes visit
www.snaptutorial.com
Homework 2 – Test Case Creation Using the following pseudocode,
provide 3 unique test cases that would help validate your
algorithm. Be sure to place the test cases in a table showing the input
https://www.coursehero.com/tutors-problems/Computer-
Science/10754291-I-need-help-with-c-coding-asap-how-much-will-it-
be/zvalues, and expected output
for each test case.
Write "Enter the price in dollars:"
Input Price
Write "Enter state sales tax(e.g. .06) :"
Input SalesTax
Set Price = Price + (Price * SalesTax)
Write "Price with Tax is" + Price Submit your word or PDF
file to your assignments folder no later than the due date. Grading
guidelines
Submission
A minimum of 3 test cases were provided.
Input provided and explained for each test case.
Expected output provided and explained for each test case.
Test cases represent a wide variety of possible input values (e.g. large
numbers,
small numbers (0), negative, or unexpected non-number entries).
Total Points
2
1
1
1
5
3. **************************************************
CMIS 102 Homework 3 (100% Correct)
For more classes visit
www.snaptutorial.com
Create your own unique While-End or (For End) repetition C code. You
decide the theme. Be sure to provide an overview of what your repetition
structure is doing. Please keep the design simple for this exercise. Just a
few lines of code is all that is needed for this response. This should be
code you wrote for an application that is interesting to you. In other
words, make it your own and have fun with it.
Provide the C code and a screen capture showing the results of testing
your code in an online compiler. Be sure to test your code with several
test cases and show your test case table
**************************************************
4. CMIS 102 Homework 4 Create your own
Function
For more classes visit
www.snaptutorial.com
Create your own function in C that accepts one input parameter and
returns a float number. You decide the theme.
You should provide both your C code and an example call to the C code
function. Be sure to provide an overview of what your function is doing.
Provide a screen capture showing the results of testing your code in an
online compiler.
Be sure to test your code with several test cases and show your test case
table.
Submit your word or PDF file to your assignments folder no later than
the due date.
**************************************************
CMIS 102 Week 1 Hands-On Lab
5. For more classes visit
www.snaptutorial.com
CMIS 102 Week 1 Hands-On Lab
This hands-on lab demonstrate a simple sequential print statements using
an online C compiler such as ideone.com. You should follow the
instructions to complete the lab as well as perform the learning exercises
at the end of this lab.
Instructions
1. Open up any online C compiler (e.g ideone.com).
2. Be sure the C Language is selected.
3. Enter the code below into the editor. (Note: LEO doesn’t let you just
copy and paste from this document so you can either download the
document and then copy and paste or just go to the Code for HelloWorld
link for this week and copy and paste from there.)
4. Click the submit, or run button.
5. Try the additional learning exercises on the next page. Here is what
Hello, World! Looks like using ideone.com after it has successfully run
Hello, World C code
1
2
3
4
5
6 #include <stdio.h>
int main(void) {
printf("Hello, World!");
return 0;
6. }
Learning Exercises for you to complete
1. Remove the semi-colon (;) at the end of this statement:
1 printf("Hello, World!");
2. Describe what happens. Why is the semi-colon needed?
3. What happens if you add another printf statement such as:
1 printf("Goodbye"); after the printf("Hello, World!"); line?
4. Describe the new output. Be sure to support your description with
screen captures of executing the new code.
5. Experiment by adding additional printf statements to your code such
as:
1
2 printf("Goodbye n");
printf("Hello, again! n");
6. What does the “n” do to the output?
**************************************************
CMIS 102 Week 2 Hands-On Lab
For more classes visit
www.snaptutorial.com
CMIS 102 Week 2 Hands-On Lab
Overview
7. This hands-on lab allows you to follow and experiment with the critical
steps of developing a program including the program description,
analysis, test plan, design, and implementation with C code.
Program Description
This program will sum two integer numbers to yield a third integer
number. Once the calculations are made the results of all the numbers
will be printed to the output screen.
Analysis
We will use sequential programming statements.
We will define 3 integer numbers: a, b, c.
c will store the sum of a and b.
Test Plan
To understand this program the following input numbers could be used
for testing:
a = 10
b = 20
c = a + b = 10 + 20 = 30
In table format the following results are expected:
Learning Exercises for you to complete
1. Change the C code to calculate the product of two integers as opposed
to the sum of two integers. Support your experimentation with a screen
capture of executing the new code.
2. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for the product of two integers.
3. Change the C code to calculate the quotient (e.g. a/b) of two floats
(e.g. 2.3/1.5).Hint: Use float variable types as opposed to integers. What
happens if the denominator is 0.0? Support your experimentation with
screen captures of executing the new code
4. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for
the quotient of two floats.
Submission
• Submit a neatly organized word (or PDF) document that demonstrates
you successfully executed this lab on your machine using an online
compiler. You should provide a screen capture of the resulting output.
8. • Also, provide the answers, associated screen captures, C Code and
descriptions of your successful completion of learning exercises 1, 2, 3
and 4.
• The answers to the learning exercises, screen captures, C code and
descriptions can be included in the
same neatly organized document you prepared as you ran this lab. Note
the code can be embedded in the word document. However; be sure all
code compiles and runs perfectly before submitting the document.
• Submit your document no later than the due date listed in the syllabus
or calendar.
**************************************************
CMIS 102 Week 3 Hands-On Lab
For more classes visit
www.snaptutorial.com
CMIS 102 Week 3 Hands-On Lab
Overview
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program including the program description,
analysis, test plan, design, pseudocode visualization, and implementation
9. with C code. The example provided uses mathematical operators and
variable types. Program
Description
This program will calculate the area of a right triangle. The program will
ask the user to enter the base and height and then use these values to
calculate and then print the area of the triangle. The design step will
include pseudocode.
Analysis
I will use sequential programming statements. I will define two float
numbers for the base and height: base, height. Float numbers were
selected as opposed to integers to make sure triangles of all dimensions
are possible and not just whole numbers.
Float number will store the area: area
The area will be calculated by this formula:
Area = ½ * (base * height)
For example if the base was 4.2 and the height was 5.3 the area would be
calculated as:
Area = ½ * (4.2 * 5.3) = ½ * (22.26) = 11.13
Test Plan
To verify this program is working properly the following base and
height values could be used for testing:
Learning Exercises to be complete (Setting up the code and the input
parameters in ideone.com:)
1. Change the C code to calculate the perimeter of a triangle. Support
your experimentation with a screen capture of executing the new code
2. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for the perimeter of a triangle.
3. What is this line of code doing?
1 scanf("%f", &height);
4. How would you change this line if you wanted to input an Integer as
opposed to a float?
5. What are the values of f and g after executing the following C?
10. **************************************************
CMIS 102 Week 4 Hands on Lab
For more classes visit
www.snaptutorial.com
CMIS 102 Hands-On Lab
Week 4
Overview
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program
including the program description, analysis, test plan, design (using
pseudocode), and implementation
with C code. The example provided uses sequential and selection
statements.
Program Description
This program will calculate the sum of 5 integers. The program will ask
the user to 5 integers. If the sum
of the numbers is greater than 100, a message is printed stating the sum
is over 100. The design step will
include both pseudocode.
Analysis
I will use sequential, and selection programming statements.
I will define six integer numbers: value1, value2, value3, value4, value5
and sum. The value1, value2,
11. value3, value4 and value5 variables will store the integers input by the
user. The sum will store the sum
of the 5 values.
The sum will be calculated by this formula:
sum = value1 + value2 + value3 + value4 + value5
For example, if the first values entered were value 1=1, value 2=1, value
3=2,value 4=2 and value 5=3
respectively:
sum = 1 + 1 + 2 + 2 + 3 = 9
The additional selection statement will be of this form:
If sum > 100 then
print "Sum is over 100"
End If Test Plan
To verify this program is working properly the input values could be
used for testing:
Test Case
1 2 Input
value1=1
value2=1
value3=1
value4=0
Value5=2
value=100
value=100
value=100
value=100
value=200 Expected Output
Sum = 5 Sum = 600
Sum is over 100. 1 3 value= -100
value= -100
value= -200
value = 0
value= 200 Sum = -200 Pseudocode
// This program will calculate the sum of 5 integers.
// Declare variables
12. Declare value1, value2, value3, value4, value5, sum as Integer
//Initialize Sum to 0
Set sum = 0
// Enter
Print
Input
Print
Input
Print
Input
Print
Input
Print
Input values
“Enter
value1
“Enter
value2
“Enter
value3
“Enter
value4
“Enter
value5 an Integer for value1”
an Integer for value2”
an Integer for value3”
an Integer for value4”
an Integer for value5” // Calculate sum
sum = value1 + value2 + value3 + value4 + value5
// Print results and messages
Print “Sum is “ + sum
If (sum > 100)
Printf “Sum is over 100”
End if C Code
13. The following is the C Code that will compile in execute in the online
compilers.
// C code
// This program will calculate the sum of 5 integers.
// Developer: Faculty CMIS102
// Date: Jan 31, XXXX
#include <stdio.h>
int main () 2 {
/* variable definition: */
int value1,value2,value3,value4,value5,sum; /* Initialize sum */
sum = 0;
printf("Enter an Integer
scanf("%d", &value1);
printf("Enter an Integer
scanf("%d", &value2);
printf("Enter an Integer
scanf("%d", &value3);
printf("Enter an Integer
scanf("%d", &value4);
printf("Enter an Integer
scanf("%d", &value5); for value1n");
for value2n");
for value3n");
for value4n");
for value5n"); sum = value1 + value2 + value3 + value4 + value5;
printf("Sum is %dn " , sum );
if (sum >100)
printf("Sum is over 100n");
return 0;
} Setting up the code and the input parameters in ideone.com:
Note the input integer values are 100, 100, 100, 200 and 100, for this test
case. You can change these
values to any valid integer values to match your test cases. 3 Results
from running within ideone 4 Learning Exercises for you to complete
14. 1. Demonstrate you successfully followed the steps in this lab by
preparing screen captures of you
running the lab as specified in the Instructions above.
2. Change the C code to sum 10 integers as opposed to 5? (Hint: Please
don’t use arrays or Loops
for this. We will be using those features in another week.) Support your
experimentation with a
screen capture of executing the new code 3. Using the code you create in
step 1, modify the code to print an additional statement if the sum
of the value is negative (Hint: Consider modifying the existing selection
statement) Support your
experimentation with a screen capture of executing the new code. 4.
Prepare a new test table with at least 3 distinct test cases listing input
and expected output for
the code you created after step 2.
5. Create your own C code implementation of one of the following
mathematical formulas:
a. y = mx + b; (slope of a line) Assume the user will be prompted to
input m, x and b and
the program will calculate y. If the value of y is greater than 10, inform
the user the
value is greater than 10.
b. a = PI * r*r; (area of circle). Assume the user will be prompted to
input the radius r. You
can define PI as 3.1416. . If the value of a is greater than 10, inform the
user the value is
greater than 10.
c. v = 4/3 PI r*r*r; (volume of sphere) Assume the user will be
prompted to input the
radius r. You can define PI at 3.1416. If the value of v is greater than 10,
inform the user
the value is greater than 10.
Be sure you provide not only the C code but a test table with at least 3
distinct test cases listing
input and expected output your mathematical formula. Submission
15. Submit a neatly organized word (or PDF) document that demonstrates
you successfully executed this lab
on your machine using an online compiler. You should provide a screen
capture of the resulting output.
Submit all C code you created in files.
Also, provide the answers and any associated screen captures of your
successful completion of exercises
1, 2, 3 and 4.
Submit your document no later than the due date listed in the syllabus or
calendar.
5 Grading guidelines
Submission
Demonstrates the successful execution of this Lab within an
online compiler. Provides supporting screen captures.
Modifies the C code to sum 10 integers as opposed to 5.
Supports your experimentation with screen captures of
executing the code.
Using the code created in step 1, modifies the code to print
an additional statement if the sum of the value is negative
Supports your experimentation with a screen capture of
executing the new code.
Provides a new test table with at least 3 distinct test cases
listing input and expected output for the code you created
after step 2.
Creates your own unique C code implementation of one of
the provided mathematical formulas. Provides a new test
table with at least 3 distinct test cases listing input and
expected output your mathematical formula. Supports your
experimentation with a screen capture of executing the new
code.
Document is well-organized, and contains minimal spelling
and grammatical errors.
Total Points
2
2 2 1 2 1
16. 10 6
**************************************************
CMIS 102 Week 5 Hands-On Lab
For more classes visit
www.snaptutorial.com
CMIS 102 Week 5 Hands-On Lab
Overview
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program including the program description,
analysis, test plan, design (using pseudocode), and implementation with
C code. The example provided uses sequential, selection and repetition
statements.
Program Description
This program will calculate the average of 10 positive integers. The
program will ask the user to 10 integers. If any of the values entered is
negative, a message will be displayed asking the user to enter a value
greater than 0. The program will use a loop to input the data.
Analysis
17. I will use sequential, selection and repetition programming statements. I
will define two integer numbers: count, value and sum. count will store
how many times values are entered. value will store the input. Sum will
store the sum of all 10 integers. I will define one double number: avg.
avg will store the average of the ten positive integers input.
The sum will be calculated by this formula:
Learning Exercises for you to complete
1. Change the code to average 20 integers as opposed to 10. Support
your experimentation with screen captures of executing the new code.
2. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for the code you created after step 1.
3. What happens if you entered a value other than an integer? (For
example a float or even a string). Support your experimentation with
screen captures of executing the code.
4. Modify the code to allow the user to enter an unspecified number of
positive integers and calculate the average. In other words, the user
could enter number of positive integers. (Hint: You can prompt the user
for how many they want to enter. Or; you could use a sentinel value to
trigger when the user has completed entering values). You may need to
conduct some research on your own to solve this problem. Prepare a new
test table with at least 3 distinct test cases listing input and expected
output for the code you created. Support your experimentation with
screen captures of executing the new code
**************************************************
CMIS 102 Week 6 Hands-On Lab
18. For more classes visit
www.snaptutorial.com
CMIS 102 Week 6 Hands-On Lab
Overview
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program including the program description,
analysis, test plan, design and implementation with C code. The example
provided uses sequential, repetition statements and nested repetition
statements.
Program Description
This program will calculate the average of 3 exams for 5 students. The
program will ask the user to enter 5 student names. For each of the
students, the program will ask for 3 exam scores. The average exam
score for each student will be calculated and printed.
Analysis
I will use sequential and repetition programming statements.
I will define one String to store the student name: StudentName.
I will define three Float numbers: Examvalue, Sum, Avg to store exam
values the sum of the exams and the average of the exams.
The sum will be calculated by this formula:
Sum = Sum + Examvalue
For example, if the first value entered was 80.0 and second was 90.0 and
the third exam was 100.0: sum = sum + Examvalue = 0.0 + 80.0
sum = 80.0 + 90.0 = 170.0
sum = 170.0 + 100.0 = 270.0
Avg is then calculated as:
Avg = sum/3.0
For example 270.0/3.0 = 90.0
A nested repetition loop can be used to loop through each of the 5
students and each of the 3 exams:
19. For (students=0; students <5; students++) For
(exams=0;exams<3;exams++) End For End For Sum values will need to
be reset for each student to ensure only one student data is used for
calculations each time.Test Plan
To verify this program is working properly the input values could be
used for testing:
Learning Exercises for you to complete
1. Modify the code to be able to input an undetermined number of
students. You will still only have 3 exams for each student. Support your
experimentation with screen captures of executing the new code.
2. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for the code you created after step 1.
3. What is the line of code doing?
charStudentName[100];
(Hint: We haven’t covered arrays, but a String can be thought of as an
array of characters) ?
4. What would happen if you moved the Set Sum = 0.0 from inside the
for loop to right after the declaration. For example:
// Declare variables
Declare StudentName as String Declare ExamValue, Sum, Avg as Float
// Initialize Sum Set Sum = 0.0;
Support your experimentation with screen captures of executing the new
code.
**************************************************
CMIS 102 Week 7 Hands-On Lab
20. For more classes visit
www.snaptutorial.com
CMIS 102 Week 7 Hands-On Lab
Overview
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program
including the program description, analysis, test plan, design, and
implementation with C code. The
example provided uses sequential, repetition, selection statements and
two user-defined function.
Program Description
This program will provide options for a user to calculate the square or
cube of a positive Integer input by a user. The program will prompt the
user to enter an Integer and then prompt the user if they want to
calculate the square of the cube of the number. Based on the inputs of
the user, the program will output
the square of the cube of the positive integer. The program will then
print the Integer and square or cube of the integer based on the user’s
original choice. The program will continue to prompt the user for
Integers and their calculation choice until the user enters a negative
integer. The square and cube calculations should be calculated using a
function.
Analysis
I will use sequential, selection, and repetition programming statements
and functions for the cube and
square calculations. I will define three Integer numbers: IntValue,
MenuSelect, Results to store the Integer value input by the user, the
Menu selection (1 for Square, 2 for Cube) of the user, and the results of
the Square or Cube functions.
21. The Square function will take one Integer as input and return one Integer
as the output. The calculation within the Square function is: Results =
IntValue * IntValue
For example: if 10 was entered as the IntValue. Results = 10*10 = 100
The Cube function will take one Integer as input and return one Integer
as the output. The calculation
within the Cube function is: Results = IntValue * IntValue*IntValue
For example: if 10 was entered as the IntValue. Results = 10*10*10 =
1000
A repetition loop can be used to loop through iterations until a negative
is entered:
Learning Exercises for you to complete
1. Using the Square and Cube functions as models, Create an application
that includes a function named “Shrink” that would take an Integer and
return the Integer divided by 2? (Hint: your returned value should
probably be a double type.) Support your experimentation with screen
captures of executing the new code.
2. Prepare a new test table with at least 3 distinct test cases listing input
and expected output for the code you created after step 1.
3. What would happen if you removed the following code from our
design? If intValue> 0 Support your argument with screen captures of
executing the new code.
4. Modify the original code and add an additional function of your
choice. The function should be unique and something you created for
this assignment. Support your experimentation with screen captures of
executing the new code. Prepare a test table with at least 3 distinct test
cases listing input and expected output for your unique function.
**************************************************
22. CMIS 102 Week 8 Hands-On Lab
For more classes visit
www.snaptutorial.com
CMIS 102 Week 8 Hands-On Lab
Overview:
This hands-on lab allows you to follow and experiment with the critical
steps of developing a program including the program description,
Analysis, Design(program design, pseudocode), Test Plan, and
implementation with C code. The example provided uses sequential,
repetition, selection statements, functions, strings, and arrays.
Program Description:
This program will input and store meteorological data into an array. The
program will prompt the user to enter the average monthly rainfall for a
specific region and then use a loop to cycle through the array and print
out each value. The program should store up 5 years of meteorological
data.
Analysis:
I will use sequential, selection, and repetition programming statements
and an array to store data.
I will define a 2-D array of Float number: Raindata[][] to store the Float
values input by the user. To store up to 5 years of monthly data, the
array size should be at least 5*12 = 60 elements.
A float number (rain) will also be needed to input the individual rain
data.
An integer variable (Count) is needed to keep count of how many rain
data elements were entered. This will keep track to make sure we don’t
23. go over 60 and we print only valid rain elements. In a 2D array this will
be RainData[5][12]. We can use #defines to set the number of years and
months to eliminate hard coding values.
A float number (rain) will also be needed to input the individual rain
data. A nested for loop can be used to iterate through the array to enter
Raindata. A nested for loop can also be used to print the data in the
array. A array of strings can be used to store year and month names.
This will allow a tabular display with labels for the printout. Functions
will be used to separate functionality into smaller work units. Functions
for displaying the data and inputting the data will be used.
A selection statement will be used to determine if data should be
entered.
Learning Exercises for you to try:
1. Modify the program to add a function to sum the rainfall for each year
(Hint: you need to sum for each year. You can do this using a looping
structure) Support your experimentation with screen captures of
executing the new code
2. Enhance the program to allow the user to enter another meteorological
element such as windspeed (e.g. 2.4 mph). Note, the user should be able
to enter both rainfall and windspeed in your new implementation.
Support your experimentation with screen captures of executing the new
code.
3. Prepare a new test table with at least 2 distinct test cases listing input
and expected output for the code you created after step 2
4. What happens if you change the NUMMONTHS and NUMYEARS
de finitions to other values? Be sure to useboth lower and higher values.
Describe and implement fixes for any issues if errors results. Support
your experimentation with screen captures of executing the new code.
**************************************************