Program that satisfies requirements of programming project

Assignment Help Programming Languages
Reference no: EM13677630

Required Setup and Tools

  • Standard computer lab with Pelles C and Microsoft Visio installed
  • Textbook

 Recommended Procedures:

Write a program that satisfies the requirements of Programming Project 2 of Hanly, and that uses the following modifications and tips:

  • Use the COLOR_CODES string array.
  • Instead of restricting the user input to "no caps", use the string library function strlwr() to change the input to all lower case.
  • If the user input is the word "purple", replace it with the word "violet".
  • If the user input is the word "grey", replace it with "gray".
  • Instead of printing the resistance value in kilo-ohms, if the resistance value is less than 1000 ohms, print the resistance in ohms; if the resistance value is less than 1000000 (1 million) ohms, print the resistance in kilo-ohms; otherwise, print the resistance value in Mega-ohms.
  • You may want to refer to the Lab Assignment Task 3 from Unit 4 (Resistor classification lab).
  • Start with the skeleton program provided below. Fill in the header in the usual manner. 

Build your program and fix any errors. Test your program with a variety of resistor color codes, making sure you test resistances below 1k ohm, between 1k ohm and 1M ohm, and above 1M ohm. Make sure you test using both the words "violet" and "purple", as well as "gray" and "grey". Make sure you test using upper- and lowercase color names.

Reference no: EM13677630

Questions Cloud

Find what current is needed : A 30 centimeter long solenoid consists of 5300 turns of wire wound uniformly. Find what current is needed to produce an 8.3 mT magnetic field inside the solenoid
Obtain the magnitude of magnetic field in the space : A 17 centimeter long solenoid has 4700 turns of wire. Inside this solenoid is a second one, also 17 centimeter long but with 2200 turns of wire. Obtain the magnitude of magnetic field in the space between the two solenoids
Obtain the magnitude of the magnetic field : Two long parallel wires each carry 2.7 Amp in the similar direction, with their centers 1.7 centimeter apart. Obtain the magnitude of the magnetic field halfway between the wires
Find what the magnitude of force exerted on this particle : A particle with a charge of -1.75 x 10-8 C is moving with an instantaneous velocity of magnitude 44.5 km/s in the xy-plane at an angle of 55o counterclockwise from the +x axis. Find the magnitude of the force exerted on this particle by a magnetic fi..
Program that satisfies requirements of programming project : Write a program that satisfies the requirements of Programming Project 2 of Hanly, and that uses the following modifications and tips -Use the COLOR_CODES string array.
Find what angle should the wire make : Find what angle should the wire make with the magnetic field therefore that the wire experiences a force per unit length of 1.20 N/m
Obtain the direction of the magnetic force on wire : A 7.70 centimeter length of straight wire runs horizontally along a north-south line. Obtain the direction of the magnetic force on wire
Find how large a magnetic field is needed : Find how large a magnetic field is needed to keep singly ionized helium atoms (4He) with kinetic energy 210 eV within the chamber
Determine what must be the tension in wire : Two wires are anchored at both ends. Wire 1 has a mass of 147 gram and a length of 9.2 meter. Determine what must be the tension in Wire 1 if its third harmonic is to equal the first overtone of Wire 2

Reviews

Write a Review

Programming Languages Questions & Answers

  Expression whose value is distance between two point

a structured type with two fields, x and y, both of type double-- write an expression whose value is the distance between the two point represented by p1 and p2.

  Create program which tests each member of resistor class

Create program which tests each member of Resistor class to ensure that they work properly. Complete the following Tasks: Create main function and instantiate three Resistor Class objects: Resistor1, Resistor2 and Resistor3.

  Write a single line for body of constructor to create object

Create the constructor Orb(int xSpeed, int ySpeed). Write a single line for the body of the constructor,which creates a new Velocity object.

  Function to calculate recurrence using dynamic programming

Write down a function to calculate the following recurrence by using dynamic programming. PN = PN-1 + 2PN-2, with P1 = P0 = 1.

  Write down an application with three labeled text elds one

write an application with three labeled text ?elds one each for the initial amount of a savings account the annual

  Provide example of array and how it could be used

Provide the example of the Array and how it could be used. Then look over sections on ArrayLists. Would an ArrayList be better suited for your use?

  Write a program in q basic that accept student name

Write a program in Q basic that accept a student name,score obtained in 5 course and compute the average score of the student and my program must display the name of the student

  Java api represented associative array

Character strings in C and C++ are implemented as arrays of char and Java API represented associative array?

  Create object-oriented design to enter name into text box

Create the object-oriented design for the system which permits the user to enter their name into the text box. When they press Go button message.

  Write prolog clauses to define the relationships

Using Prolog, establish a database of facts and rules for the following predicates.

  Application development and programming languages

Compare and contrast object-oriented languages (Java, C++, C#, etc.) to imperative languages (C, Pascal, etc.) in terms of:

  Write function template which accepts array

Write a function template arraySum () which accepts array and number of values stored in it and returns the sum of those values.

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