Line: 1 to 1  

 
Changed:  
< <  Due: Sept 28, 11:55pm  
> >  Due: Feb 20, 11:55pm  
Changed:  
< <  Moodle Link  
> >  Moodle Link  
Turn in

Line: 1 to 1  

 
Line: 57 to 57  
Sample output
Specifications  
Changed:  
< < 
 
> > 
 

Line: 1 to 1  

 
Changed:  
< <  Due: Feb 21, 11:55pm  
> >  Due: Sept 28, 11:55pm  
Changed:  
< <  Moodle Link  
> >  Moodle Link  
Turn in

Line: 1 to 1  

 
Line: 61 to 60  
 
Changed:  
< < 
 
> > 
 
Wind Chill Computations 
Line: 1 to 1  

 
Changed:  
< <  Lab 3Due: Sept 29, 11:55pm  
> > 
 
Changed:  
< <  Moodle Link  
> >  Moodle Link  
Turn in
 
Line: 146 to 148  
 
Added:  
> > 
 

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 31 to 31  
If the lengths are acceptable, find and print the area of the triangle (according to the formula below, also see Project 13, Chp 5) If 2 Ask user's height,weight, and age  
Changed:  
< <  Find and compute hat size, jacket size, waist according to formulas in Project 9, page 246 of the textbook  
> >  Find and compute hat size, jacket size, waist according to formulas in Project 9, page 243 of the textbook  
If 3 Ask for the temperature in Fahrenheit, as an integer Compute the temperature in celsius to nearest integer and print it out  
Line: 64 to 64  
Wind Chill Computations  
Added:  
> >  This computations are done in Celsius and m/sec.  
W = 13.12 + 0.6215 * t  11.37 * v^{0.16} + 0.3965* t * v^{0.16}
where
 
Added:  
> >  Optimally you should check if the temperature is not <= 10 and tell the user that the program cannot compute a wind chill above 10 degrees Celsius.  
FunctionsThe idea is the break this project up into functional that are cohesive  e.g. each function has a singular purpose, and could (conceivably) be used again somewhere else. I came up with 2 types of functions, the user interface functions (UI) that "talk" to the user, and the support functions that provide (mostly mathematical) functional support for the UI functions. 
Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 63 to 64  
Wind Chill Computations  
Changed:  
< <  W = 13.12 + 0.6215 * t  11.37 * v^{0.16} + 0.3965* t * v^{0.016}  
> >  W = 13.12 + 0.6215 * t  11.37 * v^{0.16} + 0.3965* t * v^{0.16}  
where
 
Line: 110 to 111  
Turn in a run with all these inputs
 
Changed:  
< < 
 
> > 
 

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 8 to 8  
 
Changed:  
< <  Grading
Problem  
> >  Problem  
Write a C++ program which does the following (Below is an outline) (100 pts)
repeat  
Line: 25 to 18  
3) Convert temperature from Fahrenheit to Celsius (nearest integers) 4) Convert temperature from Fahrenheit to Celsius (exact values) 5) Test a positive integer for being prime  
Changed:  
< <  6) Calculate a windchill factor according to the formula in Programming Project 14 (page 3001) of the textbook (though I am not convinced that it is the best formula available).  
> >  6) Calculate a windchill factor according to the formula from the text, given below.  
7) Quit
Read Option  
Line: 59 to 52  
Sample output  
Changed:  
< < 
 
> > 
 
Specifications  
Changed:  
< < 
Wind Chill
Grading Table  
> > 
Wind Chill ComputationsW = 13.12 + 0.6215 * t  11.37 * v^{0.16} + 0.3965* t * v^{0.016} where
Functions
The idea is the break this project up into functional that are cohesive  e.g. each function has a singular purpose, and could (conceivably) be used again somewhere else. I came up with 2 types of functions, the user interface functions (UI) that "talk" to the user, and the support functions that provide (mostly mathematical) functional support for the UI functions.
< SyntaxHighlightingPlugin > // User Interface Functions // Each option of the switch will simply call on of these. void printMenu(); void triangleUI(); void clothsUI(); void FtoCIntUI(); void FtoCDoubleUI(); void windchillUI(); void CheckPrimeUI(); //Support Functions double triangleArea(double a, double b, double c); double hatSize(double w, double h); double jacketSizeUnder30(double w, double h); double jacketSizeOver30(double w, double h, int age); double waistSizeOver28(double w, int age); double waistSizeUnder28(double w); double celsius(double f); int celsius(int f); void prime(int number); double windChill(double temp, double wind_speed); < end SyntaxHighlightingPlugin >
Overloaded Functions for Celsius
Recall that an overload function is one that uses the same name, but has differnent types. The C++ compiler calls the one that matches. You will need to implement each of the versions of < SyntaxHighlightingPlugin > double celsius(double f); int celsius(int f); < end SyntaxHighlightingPlugin > Grading Table  
Turn in a run with all these inputs

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 59 to 58  
Until user quits  
Added:  
> >  Sample output
 
Specifications

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 67 to 67  
 
Added:  
> >  Wind Chill
 
Grading Table  
Line: 98 to 103  
 
Changed:  
< < 
Wind Chill
 
> > 
 
Solution 
Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 68 to 68  
 
Changed:  
< <  Test inputsTurn in a run with all these inputs
Grading Table  
> >  Grading Table  
Turn in a run with all these inputs
 
Line: 106 to 82  
Test Input  
Changed:  
< < 
 
> > 
 

Line: 1 to 1  

Lab 3  
Changed:  
< <  Due: Sept 27, 11:55pm  
> >  Due: Sept 29, 11:55pm  
Moodle Link
Turn in

Line: 1 to 1  

Lab 3Due: Sept 27, 11:55pm  
Changed:  
< <  Instructions
 
> >  Moodle Link
Turn in
 
Grading
 
Changed:  
< < 
 
> > 
 
Problem  
Changed:  
< <  Write a C++ program which does the following (Below is an outline) (60 pts)  
> >  Write a C++ program which does the following (Below is an outline) (100 pts)  
repeat Print Menu 1) Compute area of a triangle (according to the formula below) 2) Compute your clothing size (according to Project 9, in chapter 4 of the textbook)  
Changed:  
< <  3) Convert temperature from Fahrenheit to Celcius (nearest integers) 4) Convert temperature from Fahrenheit to Celcius (exact values)  
> >  3) Convert temperature from Fahrenheit to Celsius (nearest integers) 4) Convert temperature from Fahrenheit to Celsius (exact values)  
5) Test a positive integer for being prime 6) Calculate a windchill factor according to the formula in Programming Project 14 (page 3001) of the textbook (though I am not convinced that it is the best formula available). 7) Quit  
Line: 31 to 32  
Test Option
If 1  
Changed:  
< <  Ask the lengts of the sides of the triangle  
> >  Ask the lengths of the sides of the triangle  
If the lengths are acceptable, find and print the area of the triangle (according to the formula below, also see Project 13, Chp 5) If 2 Ask user's height,weight, and age Find and compute hat size,jacket size, waist according to formulas in Project 9, page 246 of the textbook If 3 Ask for the temperature in Fahrenheit, as an integer  
Changed:  
< <  Compute the temperature in celcius to nearest integer and print it out  
> >  Compute the temperature in celsius to nearest integer and print it out  
If 4 Ask for the temperature in Fahrenheit (exact value)  
Changed:  
< <  Compute the temperature in celcius (exact value) and print it out  
> >  Compute the temperature in celsius (exact value) and print it out  
If 5 Ask for an integer and determine whether it is prime or not. If 6  
Line: 57 to 58  
Specifications  
Changed:  
< < 
 
> > 
 
 
Changed:  
< < 
 
> > 
 
 
Changed:  
< < 
 
> > 
Test inputsTurn in a run with all these inputs
Grading TableTurn in a run with all these inputs
Test Input
 
Wind Chill
 
Added:  
> >  Solution  

Line: 1 to 1  

Lab 3Due: Sept 27, 11:55pm  
Line: 12 to 12  
 
Changed:  
< < 
 
> > 
 
ProblemWrite a C++ program which does the following (Below is an outline) (60 pts) 
Line: 1 to 1  

Lab 3  
Changed:  
< <  Due: Sept 30, 11:55pm  
> >  Due: Sept 27, 11:55pm  
Instructions
 
Changed:  
< < 
 
> > 
 
Grading
 
Changed:  
< < 
 
> > 
 

Line: 1 to 1  

Lab 3  
Changed:  
< <  Due: Sept 29, 11:55pm  
> >  Due: Sept 30, 11:55pm  
Instructions

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 63 to 63  
 
Changed:  
< < 
 
> > 
 
Wind Chill

Line: 1 to 1  

Lab 3Due: Sept 29, 11:55pm  
Line: 70 to 70  
Added:  
> > 

Line: 1 to 1  

Added:  
> > 
Lab 3Due: Sept 29, 11:55pmInstructions
Grading
ProblemWrite a C++ program which does the following (Below is an outline) (60 pts) repeat Print Menu 1) Compute area of a triangle (according to the formula below) 2) Compute your clothing size (according to Project 9, in chapter 4 of the textbook) 3) Convert temperature from Fahrenheit to Celcius (nearest integers) 4) Convert temperature from Fahrenheit to Celcius (exact values) 5) Test a positive integer for being prime 6) Calculate a windchill factor according to the formula in Programming Project 14 (page 3001) of the textbook (though I am not convinced that it is the best formula available). 7) Quit Read Option Test Option If 1 Ask the lengts of the sides of the triangle If the lengths are acceptable, find and print the area of the triangle (according to the formula below, also see Project 13, Chp 5) If 2 Ask user's height,weight, and age Find and compute hat size,jacket size, waist according to formulas in Project 9, page 246 of the textbook If 3 Ask for the temperature in Fahrenheit, as an integer Compute the temperature in celcius to nearest integer and print it out If 4 Ask for the temperature in Fahrenheit (exact value) Compute the temperature in celcius (exact value) and print it out If 5 Ask for an integer and determine whether it is prime or not. If 6 Ask for a temperature and wind speed to calculate windchill index If 7 Quit the entire program Otherwise Print "Invalid option" End Test Until user quits
Specifications
Wind Chill
