• 100% Satisfaction Guarantee
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience:  Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
29751445
LogicPro is online now

# 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: 5 years ago.
Category: Programming
Expert:  ATLPROG replied 5 years ago.

ATLPROG :

HI

ATLPROG :

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 5 years ago.
Hi,
Do you still need the answer?
Customer: replied 5 years ago.

Yes

Expert:  LogicPro replied 5 years ago.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Customer: replied 5 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 5 years ago.
Customer: replied 5 years ago.

As soon as it would be possible as have an hour

Expert:  LogicPro replied 5 years ago.
Customer: replied 5 years ago.
Thank you
Expert:  LogicPro replied 5 years ago.
Customer: replied 5 years ago.

there is no where to accept the information and pay you

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

LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Customer: replied 5 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:

Expert:  LogicPro replied 5 years ago.
Welcome back
Lab02A_LastName_FirstInitial.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Expert:  LogicPro replied 5 years ago.
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: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Customer: replied 5 years ago.

**For LOGICPRO only**

Step 1: Requirements - DIVER Scoring Program

Expert:  LogicPro replied 5 years ago.
Hi,
Welcome back.
Expert:  LogicPro replied 5 years ago.
Customer: replied 5 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 5 years ago.
Do you need it in C++?
I have provided you C Sharp code.
Customer: replied 5 years ago.

Yes it would need to be in C++

Expert:  LogicPro replied 5 years ago.
I will provide you answer with in few hours.
Expert:  LogicPro replied 5 years ago.
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Customer: replied 5 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

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 5 years ago.
Hi,
Welcome back.
I will provide you answer for this ASAP.
Expert:  LogicPro replied 5 years ago.
Expert:  LogicPro replied 5 years ago.
Here is the output:

Customer: replied 5 years ago.

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

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

Expert:  LogicPro replied 5 years ago.
Customer: replied 5 years ago.

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

Expert:  LogicPro replied 5 years ago.
PhoneDialing_CPP.cpp
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 12935
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Customer: replied 5 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): BobEnter score for Bob: 3245Enter Player Name (Q to quit): SueEnter score for Sue: 1098Enter Player Name (Q to quit): DaveEnter score for Dave: 8219Enter Player Name (Q to quit): PatEnter score for Pat: 3217Enter Player Name (Q to quit): Q  Name ScoreBob 3245Sue 1098Dave 8219Pat 3217 Average Score: 3944.75 Players who scored below average Name ScoreBob 3245Sue 1098Pat 3217Press 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 WhileCall substr()Update newStringReturn 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 5 years ago.
When do you need it?
Customer: replied 5 years ago.

how ever soon you are able to..

Expert:  LogicPro replied 5 years ago.
I will provide you answer with in few hours.
Expert:  LogicPro replied 5 years ago.