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 LogicPro Your Own Question

LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Type Your Programming Question Here...
LogicPro is online now
A new question is answered every 9 seconds

Professor Higgins has asked you to design the logic that will

Customer Question

Professor Higgins has asked you to design the logic that will be used to calculate final class averages and grades for his students. His grading algorithm is as follows:

Exam average: 50%
Quiz average:30%
Lab average: 20%

Professor Higgins has 30 students in his class. For each student, Professor Higgins will enter the value for each of the averages (exam, quiz, and lab). Then, using the weighting above, the program will calculate the final student class average and store each student's final average into an array. The program will then determine the letter grade for each student using the following criteria:

90 - 100:A
80 - 89:B
70 - 79C
60 - 69D
Less than 59F

When the student's final grade is determined, the final grade will be stored in a second "grade" array.

After the array has loaded, the program will perform the following:

Display the scores and grades for all the students
Total class average (total of all individual student averages / number in class)

Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message. If an average score is entered that is less than 0, set the average score to 0. If an average score is greater than 100, set the average score to 100. Provide a program introduction message that tells the user how to use the program.
Submitted: 2 years ago.
Category: Programming
Expert:  ATLPROG replied 2 years ago.

ATLPROG :

HI

ATLPROG :

Welcome to Just Answer, It will be my pleasure to help you.

ATLPROG :

How soon did you need this pseudocode ?

Customer:

within 90 minutes

ATLPROG :

Unfortunately, I am not able to assist you with your question, so I will open it to all Experts and if someone can assist you, they will post a reply. Best wishes.

ATLPROG :

Sorry

Expert:  LogicPro replied 2 years ago.
Hi,
Do you still need the answer?
Customer: replied 2 years ago.

Yes

 

Expert:  LogicPro replied 2 years ago.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Customer: replied 2 years ago.

**For LOGICPRO only**

 

A small business in your neighborhood would like an application developed that determines the average dollar spent for every five purchases. The user will enter five different purchase amounts. You need to display the average to your client. Complete the pseudocode to design your logic.

Expert:  LogicPro replied 2 years ago.
Let me know the deadline.
Customer: replied 2 years ago.

As soon as it would be possible as have an hour

 

Expert:  LogicPro replied 2 years ago.
Please wait while I provide the answer.
Customer: replied 2 years ago.
Thank you
Customer: replied 2 years ago.

there is no where to accept the information and pay you

 

Expert:  LogicPro replied 2 years ago.
You will see ACCEPT button now, You can click on it

LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Customer: replied 2 years ago.
  • A. Lab Overview - Scenario/Summary

 

You will code, build, and execute two programs requiring decisions. The first program will determine the smaller of two numbers input on the screen. The second program will calculate the shipping charge based on the purchase amount input on the screen.

 

Learning outcomes:

 

  1. To be able to design program logic using either a flowchart or pseudocode
  2. To be able to define and use data types
  3. To be able to prompt the user for input
  4. To be able to use the assignment statement for calculations
  5. To be able to display output to the console in a formatted manner
  6. To be able to debug a program of syntax and logic errors
  7. To be able to make decisions

 

  • B. Deliverables

 

Section

Deliverable

Points

Part A

Step 7: Program Listing and Output

20

Part B

Step 7: Program Listing and Output

25

 

 

  • C. Lab Steps

 

Preparation:

 

If you are using the Citrix remote lab, follow the login instructions located in the iLab tab in Course Home.

 

Locate the Visual Studio 2010 icon and launch the application.

 

Lab:

 

Part A: Determine Smallest Number

 

Step 1: Requirements

 

Write a program that inputs two numbers and determines which of the two numbers is the smallest. If the numbers are equal, display a message that they are equal.

 

Sample output from program:

 

You will be asked to enter two numbers.

The smallest value will be displayed or a message if they are the same.

 

Please enter a numeric value: 4

Please enter a numeric value: 7

 

The smallest value is 4

Press any key to continue . . .

 

AND THEN:

Please enter a numeric value: 7

Please enter a numeric value: 4

 

The smallest value is 4

Press any key to continue . . .

 

 

 

Step 2: Pseudocode

 

Using the pseudocode below, write the code that will meet the requirements:

 

Display description of program

Prompt the user for the first number

Prompt the user for the second number

If first number equals second number

Display the two numbers are equal

Else

If first number is XXXXX than second number

Assign second number to smallest

Else

Assign first number to smallest

End-If

Display smallest number

End-If

 

 

 

 

Step 3: Create a New Project

Create a new project and name it LAB2A. Write your code using the processing logic in Part A, Step 2.

Step 4: Save Program

Save your program by clicking File on the menu bar and then clicking Save Program.cpp, or by clicking the Save button on the toolbar, or Ctrl + S.

 

Step 5: Build Solution

To compile the program, click Debug and then Build solution (F7). You should receive no error messages. If you see some error messages, check the code above to make sure you didn't key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again.

 

Step 6: Execute the Program

Once you have no syntax errors, to execute or run your program, click Debug on the menu bar, and then click Start Debugging.

 

Step 7: Capture the Output

 

  • 1. Capture a screen print of your output. (Do a PRINT SCREEN and paste into an MS Word document.)
  • 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.
  • 3. Save the Word Document as Lab02A_LastName_FirstInitial.

 

 

END OF PART A

 

 

 

Part B: Calculate Shipping Charge

 

Step 1: Requirements

 

Write a program that inputs the amount of the purchase and calculates the shipping charge based on the following table:

$0.00 - $250.00: $5.00

$250.01 - $500.00: $8.00

$500.01 - $1,000.00: $10.00

$1,000.01 - $5,000.00: $15.00

over $5,000.00: $20.00

 

Sample Output from Program:

Enter a purchase amount to find out your shipping charges.

 

Please enter the amount of your purchase: 234.65

The shipping charge on a purchase of $234.65 is $5.00.

 

Press any key to continue . . .

 

 

Step 2: Pseudocode

 

Using the pseudocode below, write the code that will meet the requirements.

 

Display program information

Prompt the user for the sale amount

If sale amount > $5,000.00

shipping is $20.00

Else if sale amount > $1,000.00

shipping is $15.00

Else if sale amount > $500.00

shipping is $10.00

Else if sale amount > $250.00

shipping is $8.00

Else if sale amount > $0.00

shipping is $5.00

Else

shipping is $0.00

End-If

 

If shipping is $0.00

Display "Error incorrect input"

Else

Display sale amount and shipping charge

End-If

 

 

Step 3: Create a New Project

Create a new project and name it LAB2B. Make sure you close your previous program by clicking File >> Close Solution. Write your code using the Processing Logic in Part B Step 2.

Step 4: Save Program

Save your program by clicking File on the menu bar and then clicking Save Program.cpp, or by clicking the Save button on the toolbar, or Ctrl + S.

 

Step 5: Build Solution

To compile the program, click Debug then Build solution (F7). You should receive no error messages. If you see some error messages, check the code above to make sure you didn't key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again.

 

Step 6: Execute the Program

Once you have no syntax errors, to execute or run your program, click Debug on the menu bar, and then click Start Debugging.

 

Step 7: Capture the Output

 

  • 1. Capture a screen print of your output. (Do a PRINT SCREEN and paste into an MS Word document.)
  • 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.
  • 3. Save the Word Document as Lab02B_LastName_FirstInitial.

 

END OF PART B

 

Expert:  LogicPro replied 2 years ago.
Welcome back
Here are the answer of your new questions:
Lab02A_LastName_FirstInitial.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Expert:  LogicPro replied 2 years ago.
Dowbload #2 from here
Lab02B_LastName_FirstInitial.

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant and fresh answers. Please leave a positive feedback after clicking ACCEPT and ask me if you need more information.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Customer: replied 2 years ago.

**For LOGICPRO only**

Step 1: Requirements - DIVER Scoring Program

Your State Dive Association presently scores its diving competitions with pencil and paper. They would like for you to design and develop a Dive Program in C++.

The paper forms that they presently use have the following:

Diver's Name, City
JudgeScore1 - The scores entered are from 0 to 10.
JudgeScore2
JudgeScore3
JudgeScore4
JudgeScore5
DegreeOfDifficulty - This is assigned once for each diver.
OverAllScore - The overall score is the individual diver's scores totaled and then divided by the degree of difficulty. The highest and lowest scores are removed as they are often skewed entries. Total the three scores left, divide them by 3, and then multiply that by the DegreeOfDifficulty. The degree of difficulty ranges from 1.00 to 1.67.

Display the diver's information and overall score.

When the competition is complete, there is a summary report created that lists the total number of divers and the average of the overall scores.

Lab hints: When writing this lab, use nested loops. A nested loop is when one loop is completely contained in another loop. In an inner loop, you will read the five scores one at a time. Every time you read the score (in the loop), you will compare the score to the highest so far and also to the lowest so far so you can determine the highest and lowest scores, in addition to adding the scores up one at a time.

You also need to have your program process multiple divers. Put this in an outer loop. After you process the information for one diver, prompt the user if she/he wants to process another diver. Allow the user to type either a "Y" or "y" to enter another diver's information; otherwise, exit the loop. Write an event summary by calculating and displaying the average score for all divers and the total number of divers participating.

Garbage in Garbage Out (GIGO): The data being entered by the user needs to be validated. Scores by judges may range between 0 and 10. If the user enters an invalid score, display an error message, and prompt for the score again. Keep doing this until the user enters the score correctly. The degree of difficulty may range from 1.00 to 1.67.

Sample output from program

Report to the media

Event: Diving competition

 

Enter the diver's name: Sue Jones

Enter the diver's city: Dallas

Enter the score given by judge #1: 45

Invalid score - Please reenter (Valid Range: 0 - 10)

Enter the score given by judge #1: 3

Enter the score given by judge #2: 4.5

Enter the score given by judge #3: 6.7

Enter the score given by judge #4: 89

Invalid score - Please reenter (Valid Range: 0 - 10)

Enter the score given by judge #4: 8

Enter the score given by judge #5: 9.2

What was the degree of difficulty? 1.9

Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)

What was the degree of difficulty? 2

Invalid degree of difficulty - Please reenter (Valid Range: 1 - 1.67)

What was the degree of difficulty? 1.2

 

Diver: Sue Jones, City: Dallas

Overall score was 7.68

 

Do you want to process another diver (Y/N)? y

 

Enter the diver's name: XXXXX XXXXX

Enter the diver's city: Houston

Enter the score given by judge #1: 5.7

Enter the score given by judge #2: 6.8

Enter the score given by judge #3: 7.6

Enter the score given by judge #4: 8.7

Enter the score given by judge #5: 6.7

What was the degree of difficulty? 1.1

 

Diver: XXXXX XXXXX, City: Houston

Overall score was 7.74

 

Do you want to process another diver (Y/N)? n

 

EVENT SUMMARY

Number of divers participating: 2

Average score of all divers: 7.71

Press any key to continue . . .

Step 2: Processing Logic

Using the pseudocode below, write the code that will meet the requirements.

 

Write report heading

 

Loop as long as there are divers to process

Input diver's name and city

Initialize highest score, lowest score and total score

 

Using a do-while loop input the 5 judge's scores

Validate the score to ensure it is between 0 and 10

Add score to total

Determine highest and lowest scores

 

Input and validate the degree of difficulty

Calculate the overall diver's score

 

Display the diver's information and overall score

Add diver's overall score to the final score

Add 1 to the number of divers

Prompt the user if she wants to process another diver

End-Loop

 

Calculate the average score for all divers

Display the number of divers and the average score for all divers

 

Step 3: Create a New Project

Create a new project and name it LAB3.

Write your code using the Processing Logic in Step 2. Make sure to save your program.

 

Step 4: Build Solution

To compile the program, click Debug then Build solution (F7). You should receive no error messages. If you see some error messages, check the code above to make sure you didn't key in something wrong. Once you make your corrections to the code, go ahead and click Build >> Build Solution again.

 

Step 5: Execute the Program

Once you have no syntax errors, to execute or run your program, click Debug on the menu bar and then click Start Debugging.

Step 6: Capture the Output

 

  • 1. Capture a screen print of your output. (Do a PRINT SCREEN and paste into an MS Word document.)
  • 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.
  • 3. Save the Word document as Lab03_LastName_FirstInitial.

 

Expert:  LogicPro replied 2 years ago.
Hi,
Welcome back.
Please wait while I provide you answer for this.
Expert:  LogicPro replied 2 years ago.
Download answer from here.
Ask me if you need more information.
Customer: replied 2 years ago.

when trying to run the program in Microsoft Visual C++ am getting the following error:

 

1>------ Build started: Project: Dive Shop, Configuration: Debug Win32 ------

1> Dive Shop.cpp

1>c:\users\john\documents\visual studio 2010\projects\dive shop\dive shop\dive shop.cpp(119): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Expert:  LogicPro replied 2 years ago.
Do you need it in C++?
I have provided you C Sharp code.
Customer: replied 2 years ago.

Yes it would need to be in C++

 

Expert:  LogicPro replied 2 years ago.
I will provide you answer with in few hours.
Expert:  LogicPro replied 2 years ago.
Download answer from here. DivingCompetition_CPP.cpp
Ask me if you need more information.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Customer: replied 2 years ago.
Written in C++

Step 1: Requirements: Phone-Dialing Program

Write a program that simulates the dialing of a phone number.

 

A user will input an 8-place number, for example: UN9-3177 (note that the hyphen is considered a digit).

The rules for entering phone numbers follow.

  • 8 places
  • It may have numbers, letters, or both.The phone number cannot begin with 555.
  • The phone number cannot begin with 0.
  • The hyphen must be in the 4th position.
  • No other characters (@#$%^&*()_+=\|/><etc.) are allowed.
  • If a letter is entered, its output will be a number (check your phone pad).
  • Enter Q to Quit.

 

If all of the rules are met, you will output a message to the console that reads like the following.
Phone Number Dialed: UN9-3177 *the number entered

 

If all of the rules are not met, then you output one of the following error messages to the console.

  • ERROR - Phone number cannot begin with 555
  • ERROR - Phone number cannot begin with 0
  • ERROR - Hyphen is not in the correct position
  • ERROR - An invalid character was entered

 

It will then prompt the user to try again.

 

 

This should be a lot of fun!

Here are some great things to think about as you begin your program!

 

Define a function named ReadDials() that reads each digit and letter dialed into 8 separate char variables (DO NOT USE ARRAYS). All the digits are sent back through parameters by reference.

Then, for each digit, the program will use a function named ToDigit(), which receives a single char argument (pass by reference) that may be a number or a letter of one of the digits dialed.

If it is a number, then return 0 by value indicating that it is a valid digit. If the digit is a letter, then the number corresponding to the letter is returned by reference, and return 0 by value indicating that it is a valid digit. Here are the letters associated with each digit.

 

0

 

5

J K L

1

 

6

M N O

2

A B C

7

P Q R S

3

D E F

8

T U V

4

G H I

9

W X Y Z

 

If the digit entered is not one of the valid digits or one of the valid letters, return -1 by value indicating that you have an invalid digit.

 

A phone number never begins with a 0, so the program should flag an error if such a number is XXXXX Make ReadDials() return -2 in this case.

 

A phone number never begins with 555, so the program should flag an error if such a number is XXXXX Make ReadDials() return -3 in this case.

 

A phone number always has a hyphen (-) in the 4th position. Make ReadDials() return -4 in this case (if it doesn't have a hyphen in the 4th position). If a hyphen is in any other position, it is considered an invalid digit.

 

If the phone number is XXXXX, the main calls the AcknowledgeCall function to write the converted number to the output file.

 

All the logic of the program should be put in functions that are called from Main(): ReadDials() and AcknowledgeCall().

 

The ToDigits() function is called from the ReadDials() function and is used to convert each letter entered individually into a digit and to verify that the user has entered a valid phone number. Have the program work for any number of phone numbers.

 

In the ToDigits() function uses the toupper function to convert any letters entered to uppercase. All the error messages are to be written to the output file from main() based on the return value from the functions.

 

Continue processing until the user enters a Q.

 

You will set up the 8 char variables to hold the digits of the phone number in main() and pass the variables to the functions by reference.

 

Sample Output from the Program

 

Enter a phone number (Q to quit):(NNN) NNN-NNNN/p>

Phone Number Dialed:(NNN) NNN-NNNN/p>

 

Enter a phone number (Q to quit): asc-dfer

Phone Number Dialed:(NNN) NNN-NNNN/p>

 

Enter a phone number (Q to quit): 555-resw

ERROR - Phone number cannot begin with 555

 

Enter a phone number (Q to quit):(NNN) NNN-NNNN/p>

ERROR - Phone number cannot begin with 0

 

Enter a phone number (Q to quit): 12345678

ERROR - Hyphen is not in the correct position

 

Enter a phone number (Q to quit): @34-*uyt

ERROR - An invalid character was entered

 

nter a phone number (Q to quit): Q

Press any key to continue . . .

Using the pseudocode below, write the code that will meet the requirements.

Main Function
Declare the char variables for the 8 digits of the phone number

while true
Call the ReadDials function passing the 8 digits
by reference. ReadDials returns an error code by
value.

If the return value is -5, exit the do while loop

If the error code is -1, display the
error message "ERROR - An invalid character was entered".
If the error code is -2, display the
error message "ERROR - Phone number cannot begin with 0".
If the error code is -3, display the
error message "ERROR - Phone number cannot begin with 555".
If the error code is -4, display the
error message "ERROR - Hyphen is not in the correct position".
Otherwise, call the AcknowledgeCall function
End-While

ReadDials function

Input the first digit
If a Q was entered, return -5.
Input the rest of the phone number

Call the ToDigit function for each of the 7 digits
not for digit 4
If ToDigit returns -1, return -1
If digit 4 is not a hyphen, return -4.
If digit 1 is 0, return -2.
If digits 1 - 3 are 5, return -3
Otherwise, return 0

ToDigit function
Convert the digit to upper case
Use a switch statement to determine if the digit is valid
and convert the letters to digits

If the digit is invalid, return -1.
If the digit is valid, return 0.

AcknowledgeCall function
Display the Phone Number.

Step 3: Create a New Project

Create a new project and name it LAB4.

 

Write your code using the processing logic in Step 2 (above). Make sure that you save your program.

 

Step 4: Compile and Execute

  • a) Compile your program. Eliminate all the syntax errors.

 

  • b) Build your program and verify the results of the program. Make corrections to the program logic, if necessary, until the results of the program execution are what you expect.

 

Step 5: Print Screen Shots and Program

 

  • 1. Capture a screen print of your output (do a print screen and paste into an MS Word document).
  • 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.
  • 3. Save the Word document as Lab04_LastName_FirstInitial.

 

 

 

Expert:  LogicPro replied 2 years ago.
Hi,
Welcome back.
I will provide you answer for this ASAP.
Expert:  LogicPro replied 2 years ago.
Download your program from here. PhoneDialing_CPP.cpp
Expert:  LogicPro replied 2 years ago.
Here is the output:


Ask me if you need more information.
Customer: replied 2 years ago.

So it will not let me pay or access as it says access to this page is only available to the owner

 

Expert:  LogicPro replied 2 years ago.
Please wait.
Expert:  LogicPro replied 2 years ago.
Let me know when you are there?
Customer: replied 2 years ago.

thanks LogicPro....what other info are you looking for

 

Expert:  LogicPro replied 2 years ago.
Have you downloaded the answer?
Customer: replied 2 years ago.

says it is still set to private..so unable to dowload it

 

Expert:  LogicPro replied 2 years ago.
Download again from here.
PhoneDialing_CPP.cpp
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 9361
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
LogicPro and 4 other Programming Specialists are ready to help you
Customer: replied 2 years ago.

**For LOGICPRO only**

Thank you for all your help..here is another one

 

Written in C++

 

Part A: Video Game Player Program

Step 1: Requirements

Write a program to do the following:

 

In main, declare a PlayerName Array and a Score Array. Declare the size of the arrays to be 100.

In the InputData function, input the player name and score into the arrays for an unknown number of players up to 100.

 

In the DisplayPlayerData function, display the name and score of each player.

 

In the CalculateAverageScore function, calculate the average score and return it by value.

 

In the DisplayBelowAverage function, display the name and score for any player who scored below the average. Do not use global variables.

 

Output from Program:

 

Enter Player Name (Q to quit): Bob

Enter score for Bob: 3245

Enter Player Name (Q to quit): Sue

Enter score for Sue: 1098

Enter Player Name (Q to quit): Dave

Enter score for Dave: 8219

Enter Player Name (Q to quit): Pat

Enter score for Pat: 3217

Enter Player Name (Q to quit): Q

 

Name Score

Bob 3245

Sue 1098

Dave 8219

Pat 3217

 

Average Score: 3944.75

 

Players who scored below average

Name Score

Bob 3245

Sue 1098

Pat 3217

Press any key to continue . . .

 

Step 2: Processing Logic

Using the pseudocode below, write the code that will meet the requirements.

 

Main Function

Declare the player name and score arrays, number of players, and average score.

 

Call the InputData function

Call the DisplayPlayerData function

Call the CalculateAverageScore function and assign the returned value in average score

Call the DisplayBelowAverage function

 

InputData function

While the number of players is less than the length of the array

Prompt for the player's name

If the user entered Q, break out of the loop

Prompt the user for the player's score

Add 1 to the number of players

End-While

 

DisplayPlayerData function

Display the name and score of each player

 

CalculateAverageScore function

Add up the scores and divide by the number of scores to calculate the average score

Display the average score

Return the average score to main

 

DisplayBelowAverage function

Display the names and scores of all players who scored below the average score

 

Step 3: Create a New Project

Create a new project and name it LAB5A. Write your code using the Processing Logic in Part A, Step 2. Make sure you save your program.

 

Step 4: Compile and Execute

  • a) Compile your program. Eliminate all syntax errors.

 

  • b) Build your program and verify the results of the program. Make corrections to the program logic if necessary until the results of the program execution are what you expect.

 

Part B: Pig Latin

Step 1: Requirements

Write a program that will input a phrase and convert it to pig latin. Put each word in a separate element of a string array. Remove the first letter from each word and concatenate it to the end of the word followed by "ay."

 

Sample Output from Program:

*****************************************************

* You will be prompted to enter a string of *

* words. The string will be converted into *

* Pig Latin and the results displayed. *

* Enter as many strings as you would like. *
******************************************************

 

Enter a group of words or ENTER to quit: Computer Programming is fun to learn!

 

Original words: Computer Programming is fun to learn!

New Words: omputercay ogrammingpray isway unfay otay earnlay!

 

Enter a group of words or ENTER to quit: Quit

 

Pig Latin Hint:
If a word begins with one or more consonants, move the consonant or consonant cluster to the end of the word. Add the letters "ay" to the end of the word. So, "pig" would be "igpay," and "latin" would be "atinlay."

 

Step 2: Processing Logic

Using the pseudocode below, write the code that will meet the requirements.

 

Main function

Display the heading

While the condition is true

Prompt the user for group of words or Enter to quit

Display original words

Call function pigLatinString( )

End while

 

pigLatinString( ) function

Declare and initialize string variables len, counter, start, begin, word and newString

While condition is true

Call find() and pass a space and start as parameters and return the returned value

to start

if start equals to string::npos

jump outside the loop permanently

call substr() function

display the word

update newString

increment start by one

assign start to begin

End While

Call substr()

Update newString

Return newString

 

Step 3: Create a New Project

Create a new project and name it LAB5B. Write your code using the Processing Logic in Part B, Step 2. Make sure you save your program.

 

Step 4: Compile and Execute

  • a) Compile your program. Eliminate all syntax errors.

 

  • b) Build your program and verify the results of the program. Make corrections to the program logic if necessary until the results of the program execution are what you expect.

 

Step 5: Print Screen Shots and Program

 

  • 1. Capture a screen print of your output. (Do a PRINT SCREEN and paste into an MS Word document.)
  • 2. Copy your code and paste it into the same MS Word document that contains the screen print of your output.
  • 3. Save the Word document as Lab05B_LastName_FirstInitial.

 

 

Expert:  LogicPro replied 2 years ago.
When do you need it?
Customer: replied 2 years ago.

how ever soon you are able to..

Expert:  LogicPro replied 2 years ago.
I will provide you answer with in few hours.
Expert:  LogicPro replied 2 years ago.
Download Answer #1 from here. PlayerAverage.cpp
Expert:  LogicPro replied 2 years ago.
Download answer #2 from here. PigLatin_CPP.cpp
Customer: replied 2 years ago.
I am just waitng to see what grade i get on the assignements and then i have another to ask you....thank you
Expert:  LogicPro replied 2 years ago.
Its ok.

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)