Recent Feedback
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.
HI
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.
Sorry
Hi,Do you still need the answer?
Yes
Download answer from here.
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
**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.
Let me know the deadline.
As soon as it would be possible as have an hour
Please wait while I provide the answer.
Thank you
there is no where to accept the information and pay you
You will see ACCEPT button now, You can click on it LogicPro40837.5793211806
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:
Section
Deliverable
Points
Part A
Step 7: Program Listing and Output
20
Part B
25
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:
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
Assign first number to smallest
End-If
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
Welcome backHere are the answer of your new questions:Lab02A_LastName_FirstInitial.
Dowbload #2 from hereLab02B_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.
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
EVENT SUMMARY
Number of divers participating: 2
Average score of all divers: 7.71
Step 2: Processing Logic
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
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
Hi,Welcome back.Please wait while I provide you answer for this.
Download answer from here.Ask me if you need more information.
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 ==========
Do you need it in C++?I have provided you C Sharp code.
Yes it would need to be in C++
I will provide you answer with in few hours.
Download answer from here. DivingCompetition_CPP.cppAsk me if you need more information.
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.
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.
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
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
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.
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
Hi,Welcome back.I will provide you answer for this ASAP.
Download your program from here. PhoneDialing_CPP.cpp
Here is the output:Ask me if you need more information.LogicPro40868.7094517708
So it will not let me pay or access as it says access to this page is only available to the owner
Please wait.
Let me know when you are there?
thanks LogicPro....what other info are you looking for
Have you downloaded the answer?
says it is still set to private..so unable to dowload it
Download again from here.PhoneDialing_CPP.cpp
Thank you for all your help..here is another one
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
Name Score
Bob 3245
Sue 1098
Dave 8219
Pat 3217
Average Score: 3944.75
Players who scored below average
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
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."
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
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.
When do you need it?
how ever soon you are able to..
Download Answer #1 from here. PlayerAverage.cpp
Download answer #2 from here. PigLatin_CPP.cpp
I am just waitng to see what grade i get on the assignements and then i have another to ask you....thank you
Its ok.