How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask lifesaver Your Own Question

lifesaver
lifesaver, Computer Software Engineer
Category: Programming
Satisfied Customers: 5962
Experience:  Several years of intensive programming and application development experience in various platforms.
16528259
Type Your Programming Question Here...
lifesaver is online now
A new question is answered every 9 seconds

Generate a set of test inputs and expected results for the

Customer Question

Generate a set of test inputs and expected results for the Currency Conversion program.
Submitted: 5 years ago.
Category: Programming
Expert:  lifesaver replied 5 years ago.
Hi,
Please upload your program.

Without your program it will be impossible to generate the tests inputs and outputs.

Customer: replied 5 years ago.

Main Module

 

Declare selection as integer

Declare currencyType as Integer

Declare internationalValue as real

Declare USValue as real

 

Do While user wants to continue

Display Menu

Get International Value

Convert Currency

Display Results

End loop

Print exit message

End Main Module

 

Display Menu

 

Declare continue as Boolean

Set continue = true

While continue = true

Display "Welcome to the international currency conversion program"

Display "Please make a selection"

Display "International Currency Types:"

Display "1: Canadian Dollars"

Display "2: Mexican Pesos"

Display "3: English Pounds"

Display "4: Japanese Yen"

Display "5: French Francs"

Display "6: Quit"

Display "Enter a selection:";

 

Input currencyType

 

If currencyType >= 1 AND currencyType <= 5 then

Set continue = false

else if currencyType = 6

Display "Quitting Currency Conversion"

continue = false

else

Display ""Error 4: Invalid menu selection."

continue = true

end if

 

end While

 

End Display Menu

 

Get International Value

 

Declare value as integer

Declare continue as Boolean

Set continue = true

While continue = true

Display "Enter a currency value (positive number): "

Input internationalValue

if internationalValue > 0 AND internationValue <=(NNN) NNN-NNNNthen

continue = false

else

Display ""Error 1: Invalid input--Negative Number"

continue = true

end if

end while

 

End Get International Value

 

Convert Currency

 

Declare rate as real

Select Case of currencyType

case 1:

Set rate = 1.4680

case 2:

Set rate = 9.5085

case 3:

Set rate = .6085

case 4:

Set rate = 104,9;

case 5:

Set rate = 6.2561

default:

Set rate = 0.0

End Case

USValue = rate * internationalValue

 

End Convert Currency

 

Display Results

 

Declare nation as string

Declare currency as string

Select Case of currencyType

case CANADIAN:

nation = "Canadian";

currency = "Dollars";

case MEXICAN:

nation = "Mexican";

currency = "Pesos";

case ENGLISH:

nation = "English";

currency = "Pounds";

case JAPANESE:

nation = "Japanese";

currency = "Yen";

case FRENCH:

nation = "French";

currency = "Francs";

default:

nation = "No country";

currency = "";

End Case

if currency <> "" then

Display "The value of ", internationalValue, " " , nation, " ", currency, " is ",

usValue, " dollars"

else

Display "Error 5: Invalid currency type."

end if

 

End Display Results

Expert:  lifesaver replied 5 years ago.
Ok.

I will post my answer within a couple of hours.
Customer: replied 5 years ago.
I really appreciate your help! I have been sick and I am so lost in this class! Please let me know if there is anything else you need from me! I am not even sure if that code is correct.
Expert:  lifesaver replied 5 years ago.
Ok.

I will take care of the code too.

An initial glance indicates a lot of errors,
Customer: replied 5 years ago.
I am suppose to have 3 "display menu" test cases, 4 Get_Int_Value Test, 6 Convert Currency Test, 6 Display Results Test Cases, and 3 Currency Conversion Integration Test. These can be presented in a table. Hope this helps!
Expert:  lifesaver replied 5 years ago.
Ok.

I would like you to upload your original question.(not the program)

Also i hope you don't mind adding some bonus for the efforts involved.
Customer: replied 5 years ago.

Assignment: Currency Conversion Test Procedure

Objective of Assignment: Generate a set of test inputs and expected results for the Currency Conversion program.

Display Menu Test Cases
12 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

4

 

Test Case 2:

4

 

Test Case 3:

4

 

Get_Int_Value Test
16 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

4

 

Test Case 2:

4

 

Test Case 3:

4

 

Test Case 4:

4

 

Convert Currency Test
24 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

4

 

Test Case 2:

4

 

Test Case 3:

4

 

Test Case 4:

4

 

Test Case 5:

4

 

Test Case 6:

4

 

Display Results Test Cases
24 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

4

 

Test Case 2:

4

 

Test Case 3:

4

 

Test Case 4:

4

 

Test Case 5:

4

 

Test Case 6:

4

 

Currency Conversion Integration Test
14 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

5

 

Test Case 2:

5

 

Test Case 3:

4

 

 

OF COURSE!!! Bonus for SURE!!!

Expert:  lifesaver replied 5 years ago.
This is your present assignment.Right?

I will do it ina tabular format.

But i need the question for which you have wrote the Currency Conversion program/pseudocode.
Customer: replied 5 years ago.

I am not sure that I understand what you are looking for. Here is the original assignment for the currency conversion:

 

 

  • Complete requirements analysis
  • Design
  • Verification
  • Validation and test documentation

 

The Currency Conversion application is a menu-driven program that allows users to select one of five international currency types, input the amount of a foreign currency, and then convert the foreign currency to dollars. The program displays the equivalent dollar amount and returns the user to the menu until he or she enters another conversion or quits the program.

International currency type (menu selection)

  • Canadian dollars (rate: 1 U.S. dollar = 1.4680 Canadian dollars)
  • Mexican pesos (rate: 1 U.S. dollar = 9.5085 pesos)
  • English pounds (rate: 1.6433 U.S. dollars = 1 pound)
  • Japanese yen (rate: 1 U.S. dollar =(NNN) NNN-NNNNyen)
  • French francs (rate: 1 U.S. dollar = 6.2561 francs)

 

That is what all of this is suppose to lead to! However, I am affraid that one too many pills has made me completely lose my mind!!

Expert:  lifesaver replied 5 years ago.
Yes this exactly what i wanted the problem statement.

Hope you have got some time for this assignment.
Customer: replied 5 years ago.
I make time!!! Don't worry!! BIG bonus for your help!!!
Customer: replied 5 years ago.
Hi Livesaver! How is it coming?
Expert:  lifesaver replied 5 years ago.
Hi there,

Everything is fine.I will post the code and test table within the next 2 to 3 hours.
Customer: replied 5 years ago.
AWESOME! Will everybody be able to see this answer?
Expert:  lifesaver replied 5 years ago.
yes but you i will delete the answers after you receive them or you can also close this question after receiving the answer,.
Expert:  lifesaver replied 5 years ago.
Your pseudcode and test cases are complete.I have uplaoded both the word documents to a single zipped folder.

CLICK HERE! to downlaod the answers.

Hope this helps.

Best regards,
lifesaver
Customer: replied 5 years ago.

Good Morning,

 

THANK YOU!! THANK YOU!!!! THANK YOU!!! A couple of questions, if I close this, am I able to reopen this again to get the files? Also, is this the final pseudocode? Lastly, there is part of the test cases missing:

 

Display Results Test Cases
24 Points Possible

Points Possible

Points Earned

Comments

Test Case 1:

4

 

Test Case 2:

4

 

Test Case 3:

4

 

Test Case 4:

4

 

Test Case 5:

4

 

Test Case 6:

4

 

Expert:  lifesaver replied 5 years ago.
Good Morning.

I would like you to wait for about 20 minutes before closing the question as i am not sure if you can reopen it.

I will answer the remain test cases within few minutes.

Also the pseudocode provided is complete and final.
Customer: replied 5 years ago.
OMG!!! You are my new hero!!!
Expert:  lifesaver replied 5 years ago.
There wasn't a major mistake in the test cases.

A minor one. i combined the results of test cases of Convert_Currency Module Display Results module together.

Convert_Currency Module function is to simply convert the values

Display Results module function is to simply display the results.

I converted and then showed the value together in one step instead of two.

Anyway HERE!!! goes your final answer.

You can now close the question after you accept my answer.

Thanks.
Hope this helps.

lifesaver, Computer Software Engineer
Category: Programming
Satisfied Customers: 5962
Experience: Several years of intensive programming and application development experience in various platforms.
lifesaver and 4 other Programming Specialists are ready to help you
Customer: replied 5 years ago.

Greetings,

 

Thank you so much! I just wanted to know if you got the bonus? Also, how do I close this question?

 

Thanks again!

Expert:  lifesaver replied 5 years ago.
Yes,I got the money and the bonus.Thanks.

Don't worry.I will close the question.
Customer: replied 5 years ago.
Do you still have the code that you did for this question? I have a second part to it that I need some help with. I will open another question, but I just want to know if you still have the coding that you did.
Expert:  lifesaver replied 5 years ago.
Yes i do...
Customer: replied 5 years ago.
GREAT!! Do I need to open a new question for this, or post it here? It is due on Wednesday.
Expert:  lifesaver replied 5 years ago.
If its related to this question you can post it here itself.
Customer: replied 5 years ago.

It is related. I need the below information for the code that you created:

 

Application-Level Requirements
At least 5 key requirements identified and described

Input Process Output Table
4 inputs identified
4 processes identified
3 outputs identified

Design
Hierarchy chart w/5 modules
Flowchart for each module
Pseudocode for each module (this is what you already did)
Test cases for the program (this is what you already did)

Expert:  lifesaver replied 5 years ago.
Ok i will take a look at this latter.

My first target is to finish you other assignment within the next two hours atleast.
Customer: replied 5 years ago.
Hi! I hope all is well! Is this something you are still working on for me?
Expert:  lifesaver replied 5 years ago.
Yes.Sure/

I was ill and i couldn't finish your work.

THough i am still recovering,Please give me two hours.I will do my job.
Customer: replied 5 years ago.
NO!! Please rest! Your health is much more important!!
Expert:  lifesaver replied 5 years ago.
Thank you but job is job.

ANyway,i went to my friend whi is a doc and his medicine has worked.

I can atleast work now.

Full recovery will still require some time but i am in a posiition to complete your work now..

I ahve already completed the application level requirements

Customer: replied 5 years ago.
Well how about a compromise? Let's plan on having it ready on Friday? Is that fair? I need you well! This is only my first computer class! Wink
Expert:  lifesaver replied 5 years ago.
Thanks.

I will go back to rest.

I will complete the work befored thursday night..
Customer: replied 5 years ago.

Good Morning! How are you feeling? I spoke to customer service and I will be able to make sure you are paid for your help with this. Thanks again!

Expert:  lifesaver replied 5 years ago.
Feeling great now.

DIdnot expect that i would recover so soon.

Your work is almost complete.

Application-Level Requirements(complete)
At least 5 key requirements identified and described

Input Process Output Table(complete)
4 inputs identified
4 processes identified
3 outputs identified

Design
Hierarchy chart w/5 modules(complete)
Flowchart for each module(2 modules remaining)

I would have completed it now but i have to go out now.

I need 2 to 3 hours more to complete the remaining flowcharts.Hope its Ok with you?
Customer: replied 5 years ago.
That is great! I will be back online this evening! Hope that works for you! I am glad you are feeling better!
Expert:  lifesaver replied 5 years ago.
Syre.

Your answer will be ready in 2 to 3 hours from now..
Expert:  lifesaver replied 5 years ago.
Eveything is complete now.

I ahve uploaded all the parts to a single zipped folder.

CLICK HERE! to download

Let me know if you face any problems downloading the files.

lifesaver, Computer Software Engineer
Category: Programming
Satisfied Customers: 5962
Experience: Several years of intensive programming and application development experience in various platforms.
lifesaver and 4 other Programming Specialists are ready to help you
Customer: replied 5 years ago.
Hi! Thank you for everything! I am waiting on a refund from this site to go through. Once it is done, I want to add a bonus for you. Thank you for all of your hard work!
Expert:  lifesaver replied 5 years ago.
Thanks.

Take your own time and authorize the payment at your will.

JustAnswer in the News:

 
 
 
Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.
 
 
 

What Customers are Saying:

 
 
 
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
  • My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
  • Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
  • This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
  • Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
  • Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
  • Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland
 
 
 

Meet The Experts:

 
 
 
  • ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
< Last | Next >
  • http://ww2.justanswer.com/uploads/SP/spatlanta2010/2011-6-23_12450_photo.64x64.gif ATLPROG's Avatar

    ATLPROG

    Computer Software Engineer

    Satisfied Customers:

    7463
    MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Computer Software Engineer

    Satisfied Customers:

    5603
    Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
  • http://ww2.justanswer.com/uploads/unvadim/2010-11-15_210218_avatar.jpg unvadim's Avatar

    unvadim

    Computer Software Engineer

    Satisfied Customers:

    1158
    Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.
  • http://ww2.justanswer.com/uploads/lifesaver333/2010-10-17_191349_ls.jpeg lifesaver's Avatar

    lifesaver

    Computer Software Engineer

    Satisfied Customers:

    950
    Several years of intensive programming and application development experience in various platforms.
  • http://ww2.justanswer.com/uploads/EH/ehabtutor/2012-8-2_202016_1.64x64.jpg ehabtutor's Avatar

    ehabtutor

    Computer Software Engineer

    Satisfied Customers:

    864
    Bachelor of computer science, 5+ years experience in software development, software company owner
  • http://ww2.justanswer.com/uploads/RA/rajivsharma086/2012-6-6_17128_displaypic.64x64.jpg Raj's Avatar

    Raj

    Computer Engg.

    Satisfied Customers:

    860
    BE CS, 4+ Experience in Programming and Database (ERP)
  • http://ww2.justanswer.com/uploads/eljonis/2010-01-06_130406_eljon2.jpg Eljon's Avatar

    Eljon

    Consultant

    Satisfied Customers:

    590
    11 yrs of programming (PHP, WordPress, XSL, SQL, JavaScript)
 
 
 

Related Programming Questions