1.7 Guided Practice

docx

School

Alamo Colleges *

*We aren’t endorsed by this school

Course

126

Subject

Computer Science

Date

Oct 30, 2023

Type

docx

Pages

2

Uploaded by MagistrateGoldfinchMaster399

Report
Main ) Integer Weekly, Yearly Input yearly , weekly = yearly/52 Output "Your weekly pay is: "& weekly - v Output "You are doing well. Spend your money wisely.” £ Console = (=] X =0/ & pplil W e | Your weekly pay is: 1250 | ] rmonay wisely, | | ‘You are doing well. Spend your money wisely. | wk1_PA3.cpp wk1_PA3.cpp Wk_PAd.cpp 1 //Wk1_Guided Practice_Creating a Flowchart and C //Maria D. 0.7.23 2 3 4 5 #include <stdio.h> 6 7 8 int mair{§] { 9 10 int weekly, yearly; 1 12 printf(“what is your annual pay? "); 13 scanf("%d", &yearly); 14 15 weekly=yearly/52; //assignmet statement computtingthe weekly pay 16 17 printf("Your weekly pay is: %d\n", weekly); 18 19 if(weekly > 1008) //an if statment allows us to make a decision based on a condition 20 { 21 printf("You are doing well. Spend your money wisely"); 22 es dlh Compilelog &/ Debug [@ FindResuits $] Close
1 C:\Users\18302\OneDrive\Dox iments\Labs\wk_PA4.exe [m] X What is your annual pay? 75000
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help

Browse Popular Homework Q&A

Q: Which movement inspired other movements to "remove barriers to equality before the law"?   a. The…
Q: 3. A quadratic function is graphed below. Write the equation for this function in standard form. 5…
Q: Select the statement that is correct about why physicians cannot harvest the organs from…
Q: Find the largest possible area for a rectangle whose perimeter is given at 16 ft.
Q: A steel wire of length 2.08 m with circular cross section must stretch no more than 0.200 cm when a…
Q: Let X₁, X₂, X3,..., Xn be a random Sample from N (μ,0²) Use maximum likelihood estimation to find…
Q: Childhood trauma may lead to     Chronic inflammation regardless of current depressive symptoms…
Q: Suppose you found the number the probability of women meeting the height requirement to be .3526 and…
Q: Women's height are normally distributed with a mean of 63.7 inches and a standard deviation of 2.9.…
Q: Example 4: A right triangle whose hypotenuse is √48 inches long is revolved about one of its legs to…
Q: c) Use the P-value approach at the x = 0.05 level of significance to test the hypotheses in part…
Q: Neutron stars, such as the one at the center of the Crab Nebula, have about the same mass as our sun…
Q: When the Cu²+ concentration is 1.07 M, the observed cell potential at 298 K for an electrochemical…
Q: 2 Suppose that A = 2 1 Find the eigenvectors of A 1 0 -1
Q: A gnat takes off from one end of a pencil and flies around erratically for 3 s, seats on a wall for…
Q: List the issues that arise while establishing the information system architecture needed to serve…
Q: x+y≤9 2x+5y210 x≥0, y 20 D
Q: In addition to managing the processes it controls, what are the other two crucial tasks that an…
Q: The composite function theorem allows for the demonstration of which of the following statements? O…
Q: Example A04-7. Determine the location of the center of gravity x and y of the cross section shown.…
Q: In each part, perform each reduction using Fermat's Little Theorem or Euler's Theorem: a) Reduce 721…
Q: find the measure (if possible) of the complement and the supplement of each angle.  how do I find…