Welcome to Just Answer, It will be my pleasure to help you.
How soon did you need this pseudocode ?
within 90 minutes
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.
**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.
As soon as it would be possible as have an hour
there is no where to accept the information and pay you
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.
Step 7: Program Listing and Output
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.
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 . . .
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
If first number is XXXXX than second number
Assign second number to smallest
Assign first number to smallest
Display smallest number
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
END OF PART A
Part B: Calculate Shipping Charge
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.
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
shipping is $0.00
If shipping is $0.00
Display "Error incorrect input"
Display sale amount and shipping charge
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.
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.
END OF PART B
**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, CityJudgeScore1 - The scores entered are from 0 to 10.JudgeScore2JudgeScore3 JudgeScore4JudgeScore5 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
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
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
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
Calculate the average score for all divers
Display the number of divers and the average score for all divers
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
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
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 ==========
Yes it would need to be 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.
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.
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.
J K L
M N O
A B C
P Q R S
D E F
T U V
G H I
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
Enter a phone number (Q to quit): 555-resw
ERROR - Phone number cannot begin with 555
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
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
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.
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
Step 5: Print Screen Shots and Program
So it will not let me pay or access as it says access to this page is only available to the owner
thanks LogicPro....what other info are you looking for
says it is still set to private..so unable to dowload it
**For LOGICPRO only**
Thank you for all your help..here is another one
Written in C++
Part A: Video Game Player Program
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
Average Score: 3944.75
Players who scored below average
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
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
Display the name and score of each player
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
Display the names and scores of all players who scored below the average score
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.
Part B: Pig Latin
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."
* 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."
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( )
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
if start equals to string::npos
jump outside the loop permanently
call substr() function
display the word
increment start by one
assign start to begin
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.
how ever soon you are able to..