Think about logic and design first write the pseudo-code for

Assignment Help C/C++ Programming
Reference no: EM131193341

General Programming Assessment

Scenario

There are eight cars in each team called Chevy and Ford. One car from each team races its opponent on the drag strip. Read in the racing times for the eight Chevy cars and then read in the times for the eight Ford cars. Store the times into arrays called Chevy[ ] and Ford[ ]. Then list the winner of each pair, giving the number of seconds the winner won by. At the end declare which team won based on which team had the most wins. Below is a sample match.

Enter the times for the Chevy cars: 5.4 7.2 4.0 9.1 5.8 3.9 6.2 8.1

Enter the times for the corresponding Ford cars: 5.8 6.9 3.9 9.2 5.8 3.8 6.0 8.5

And the winners are:

Chevy by 0.4 sec
Ford by 0.3 sec
Ford by 0.1 sec
Chevy by 0.1 sec
Tie !
Ford by 0.1 sec
Ford by 0.2 sec
Chevy by 0.4 sec
And the winning team is: F O R D !

  • Accept the racing times for each of the Chevy cars into the array Chevy[ ].
  • Accept the racing times for each of the Ford cars into the array Ford[ ].
  • Then declare the wining car for each race, giving the winning time in seconds.
  • If the times are identical, then declare the race was a tie.
  • Finally, declare which team won the match, assuming a tie is possible.

Q1. Think about logic and design first, write the pseudo-code for it. 

Q2. Draw a flowchart. 

Q3. Write the program in any of the language given below: 

a. C++ 
b. Java 
c. C# 
d. Visual Basic 
e. Python 

Q4. Draw an IPO chart for your test cases.

Reference no: EM131193341

Questions Cloud

Calculate the moment and shear force in the rod : A bent rod is supported in the xz plane by bearings at B, C, and D and loaded as shown in Figure P1.15. Dimensions are in millimeters.
What effective ways to teach language in social studies : What are some effective ways to teach academic language in social studies? Why is it important to teach students important vocabulary prior to studying a concept?
The company reducing operating expenses : American Airlines' Chapter 11 reorganization plan filed in 2012 involved the company reducing operating expenses by $2 billion, while increasing revenues by $1 billion. The company's strategy to increase revenues included expanding the number of inte..
Determine the amount of heat generated by the electronic : determine the amount of heat generated by the electronic devices mounted on the cold plate.
Think about logic and design first write the pseudo-code for : Think about logic and design first, write the pseudo-code for it. Draw a flowchart. Write the program in any of the language given below: Draw an IPO chart for your test cases.
What is reputation management : What is reputation management? Explain why companies are concerned about their reputation and its effects on stakeholders. What are the four elements of reputation management? Why is it important to manage these elements?
How you would use each item of information to make decision : Imagine you are a businessperson who likes to invest in small to medium size start-up businesses that are focused on the creative industries. How you would use each item of information to make your investment decision.
Comparative advantage in the production of wristbands : a. For Kristen and for Anna, what is the opportunity cost of a pot holder? Who has a comparative advantage in the production of pot holders? Explain your answer. b. Who has a comparative advantage in the production of wristbands? Explain your answe..
Develop an initial budget for your plan : Prepare a pie chart showing the dollars/percentages budgeted for each included marketing activity for the first year. Provide justification for your choices.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd