编程辅导 C C++ Java Python MIPS Processing 网络家教 在线辅导

编程家教 远程写代码 Debug 讲解答疑 课后答疑 不是中介,本人直接答疑

微信: ittutor QQ: 14061936 Email: ittutor@qq.com

导航

INFO-1156 Object-Oriented Programming in C++Project Description Warp Drive was made famous in Star Trek and represents a hypothetical faster-than-light propulsion system.   The space crafts

INFO-1156 Object-Oriented Programming in C++

Project Description

Warp Drive was made famous in Star Trek and represents a hypothetical faster-than-light propulsion system.   The space crafts were equipped with these warp drives which allowed them to go faster than the speed of light.   To set the velocity of the space crafts, they would specify the warp factor.  The warp factor of “warp 1” is equivalent to the speed of light, “warp 2” is equivalent to 8 times the speed of light and “warp 3” is 27 times the speed of light.   The range of allowable warp factors for your program are between 1.0 and 10.0.

In the original series, velocity is defined as:    v = w3 c

In Star Trek: The Next Generation and beyond, velocity is defined as   v = w10/3 c

Where v is velocity, w is the warp factor and c is the speed of light which is a physical constant value of 299792458.0 m/s.

Write a C program that will prompt the user for the low warp factor (must be >= 1.0), a high warp factor (must be <=10.0) and a warp increment factor (must be >= 0.1 and <= 1.0) and the program will calculate the velocity as defined by the original Star Trek series as well as the velocity defined by Star Trek: The Next Generation and beyond.   Format all input and output as demonstrated by the sample program.

For more information on Warp Drive, go to Wikipedia at the following URL: https://en.wikipedia.org/wiki/Warp_drive

The executable file must be named ‘WarpSpeed.exe’

Grading Criteria

Functional Requirements

 

 

Accepts inputs and uses the input values for calculation.  

10%

 

The inputs are checked to make sure that they are within the valid range

10%

 

The program will automatically correct the range (low and high warp factor) if the values are input in reverse.

10%

 

Performs the calculation for velocity correctly for both definitions of warp speed.

20%

 

 

With any other invalid input, the program will notify the user and prompt the user to enter new values or exit the program without crashing.

10%

 

A table of warp drives is displayed to screen from the low input value to the high input value in increment specified by the user.  

Note: The table must be formatted exactly like the table in the sample program to get full marks.  

30%

 

Velocity is in the units km/h.

10%

 

Non-functional requirements

 

 

Executable program is not named ‘WarpSpeed.exe’

-10%

 

Failure to respect submission requirements

-10%/issue

 

Other issues

my discretion

 

Total

100%

100%

Submission Requirements

1.      Submit entire Visual Studio project directory to Fanshawe Online

a.       Delete all debug and release directories.[i]

b.      Submit in a .ZIP, .7z archive file.

 



[i] Alternatively, you can ‘clean’ your project for submission by downloading ‘vsclean’ a Visual Studio Solution Cleaner from www.gats.ca .

 

相关推荐